so far I got this preg_match_all pattern:

"/\\[([...@=])([^\\1][^\\]]*?)($pat)(.*?)\\1\\]/"

to match a [@ ..... $pat ..... @] or [= .... $pat ....=]
sequence.
But it does not match if there is a closing ] inside.
How can i precisely match each individual escape code sequence
containg a string var $pat, without it getting too greedy?

[ followed by = or @, followed by any character, but not by
 characters @] or =] (matching the opening @ or = ), unless
 $pat comes first.

thanks for help on this!

Hans


_______________________________________________
pmwiki-devel mailing list
pmwiki-devel@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Reply via email to