HeniutX Posted September 2, 2012 Share Posted September 2, 2012 Hi I have variable with: $test = "blablabla <b>asd</b> <img src='test.png'> testtest" I wanted to get from this: $test = "blablabla testtest" So remove all the html tags as php StripTags. Is it possible that a function must be ready to suffer for years in the RegExp? : ( Thanks in advance for your help and sorry for my english Link to comment Share on other sites More sharing options...
Bowmore Posted September 2, 2012 Share Posted September 2, 2012 This may be what you are looking for $test = "blablabla <b>asd</b> <img src='test.png'> testtest" $test = StringRegExpReplace($test,"<[^<]*>","") Msgbox(0,"",$test) FireFox and HeniutX 2 "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook Link to comment Share on other sites More sharing options...
HeniutX Posted September 3, 2012 Author Share Posted September 3, 2012 Very much thanks :] Topic done... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now