golles Posted February 18, 2010 Share Posted February 18, 2010 Hey PHP Guru's, I'm looking for some help to get some pieces from a string. I have a string with HTML and some tags like: {NC:type:image(1,2,3)} and {NC:type:html} I want to replace those tags like this: {NC:type:image(1,2,3)} -> $string1 {NC:type:html} -> $htmlstring I'm looking forward to your brilliant reply's Link to comment https://forums.phpfreaks.com/topic/192527-need-preg-help/ Share on other sites More sharing options...
fizix Posted February 18, 2010 Share Posted February 18, 2010 Is your data changing at all? If not you shouldn't even be using regex; you could use strpos(). Link to comment https://forums.phpfreaks.com/topic/192527-need-preg-help/#findComment-1014387 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.