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? Link to comment https://forums.phpfreaks.com/topic/51160-solved-find-all-foo-in-a-string/ 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); ?> Link to comment https://forums.phpfreaks.com/topic/51160-solved-find-all-foo-in-a-string/#findComment-252166 Share on other sites More sharing options...
slough Posted May 13, 2007 Author Share Posted May 13, 2007 Thanks a lot, problem solved! Link to comment https://forums.phpfreaks.com/topic/51160-solved-find-all-foo-in-a-string/#findComment-252183 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.