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.