Results 1 to 2 of 2
May 14, 2007, 17:23 #1
Replace everything NOT between specific tags
How can I replace everything in a string without effecting what is between specific tags?
Basically, I have a string:
$str = 'blah blah blah <object type="application/x-shockwave-flash" ...><param ... /></object> more blah bla bloop';
<object type="application/x-shockwave-flash" ...><param ... /></object>
May 14, 2007, 19:25 #2
- Join Date
- Aug 2000
- Philadephia, PA
- 1 Post(s)
- 0 Thread(s)
Your goal is to match the <object...</object> part of the string and return the match, it's not a replacement problem
http://us.php.net/preg_matchTry Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more