View Single Post
Old 04-07-2008, 02:20 PM   #25 (permalink)
delayedinsanity
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

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"...
-m
delayedinsanity is offline  
Reply With Quote
The Following User Says Thank You to delayedinsanity For This Useful Post:
Orc (04-07-2008)