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 Quote Link to comment 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(). 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.