View Single Post
Old 03-03-2003, 08:10 PM   #2 (permalink)
abc123
bloomberg
 
abc123's Avatar
 
Join Date: Jun 2002
Location: bloomberg
Posts: 263
abc123 is on a distinguished road
Send a message via AIM to abc123 Send a message via Yahoo to abc123
well, the regexp to match inside php tags would be:

Code:
 ".*?\[php\](.*?)\[/php\].*?"
note that given "[ph p]abc[/ph p]xxx[ph p]123[/ph p]" you would get my wonderful name; "abc123".

note that "\" is escaping the "[" and "]" so if "\" is an escape in php ( which it probably is ) you'll need to escape that first. but does php even use quotes for regexps? i can't remember.
__________________
-- bloomberg.
abc123 is offline   Reply With Quote