D Dan S New member Jun 24, 2009 #1 So I just found a sudden use for preg_replace... Let's say I have a string: <!--[if gte vml 1]>GARBLEGARBLEGARBLEGARBLE<![endif]--><![if !vml]>USEFULSTUFF<![endif]> And I wanted it to JUST keep "USEFULSTUFF" How would I use preg_replace to do that?
So I just found a sudden use for preg_replace... Let's say I have a string: <!--[if gte vml 1]>GARBLEGARBLEGARBLEGARBLE<![endif]--><![if !vml]>USEFULSTUFF<![endif]> And I wanted it to JUST keep "USEFULSTUFF" How would I use preg_replace to do that?