slough Posted May 13, 2007 Share Posted May 13, 2007 My clients old CMS placed a lot of {$blabla}, {$blabla2} tags in the article contents. Now I'd like to remove them as they arent being used within their new CMS. I guess I'd have to sort it out with at regex of some kind... The tags always starts with "{$" and ends with "}" and can contain both letters and numbers in between. Can anyone please help? Quote Link to comment Share on other sites More sharing options...
effigy Posted May 13, 2007 Share Posted May 13, 2007 <?php preg_match_all('/\{\$.+?\}/', $data, $matches); print_r($matches); ?> Quote Link to comment Share on other sites More sharing options...
slough Posted May 13, 2007 Author Share Posted May 13, 2007 Thanks a lot, problem solved! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.