i have a little regex:
preg_match_all("/\[tr:.+\]/",$phpope->content,$matches);
I would that it only match, if the string [tr: foo] is outside from a textarea tag.
Background: It's for translating in some html template