Thread: RegEx
View Single Post
Old 04-30-2008, 08:16 PM   #2 (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

Regular-Expressions.info - Regex Tutorial, Examples and Reference - Regexp Patterns
Regular Expressions Cheat Sheet - Cheat Sheets - ILoveJackDaniels.com

and finally,

preg_match()
preg_replace()

For "mytext", if that was the literal string, you could

echo preg_replace("~(mytext)~", "newtext", $szString);

...for a real basic example.
-m
delayedinsanity is offline  
Reply With Quote