[pmwiki-devel] another regex pattern  question
    Hans 
    design5 at softflow.co.uk
       
    Sun Aug 30 11:33:54 CDT 2009
    
    
  
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
    
    
More information about the pmwiki-devel
mailing list