[Lazarus] RE : Regex help needed please

Ludo Brands ludo.brands at free.fr
Wed Aug 10 18:06:41 CEST 2011


> 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





More information about the Lazarus mailing list