[pmwiki-devel] another regex pattern question
design5 at softflow.co.uk
Sun Aug 30 11:33:54 CDT 2009
so far I got this preg_match_all pattern:
to match a [@ ..... $pat ..... @] or [= .... $pat ....=]
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!
More information about the pmwiki-devel