> The following regex matches the first { symbol up until the 
> last } symbol. :-(  I obviously want it to stop at the first 
> } it encounters.
> 
> This is the regex I'm currently using:
> 
>     \s*\{\$.*\}
> 
> 

\{\$.*?\}  in preg dialect

matches: 
17:{$ifdef FPC}
37:{$else}
48:{$endif}

Ludo


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to