BBCode using Preg_Replace
View Single Post
04-07-2008, 02:20 PM
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
I'm sure you could do it any number of ways, but if I wanted to replace "The quick brown fox jumps over the lazy dog" with "A little brown fox gets eaten by my cat", I might use /^[\w\s]+(brown fox)[\w\s]+$/i with a replacement string of "A little $1 gets eaten by my cat"...
The Following User Says Thank You to delayedinsanity For This Useful Post:
View Public Profile
Send a private message to delayedinsanity
Visit delayedinsanity's homepage!
Find More Posts by delayedinsanity