[Lazarus] Regex help needed please
Martin
lazarus at mfriebe.de
Wed Aug 10 17:41:27 CEST 2011
On 10/08/2011 16:28, Graeme Geldenhuys wrote:
> On 08/10/2011 05:21 PM, ik wrote:
>> Try this:
>> \{.*[^\}]\}
> thanks for the quick response, but that doesn't seem to work either.
...
> You left out the $ symbol after the first { symbol, but even so the
> following still matches too much.
>
> \{\$.*[^\}]\}
>
> I also tried this...
>
> \{\$.*[^\{]\}
>
without testing, from memory
All the above have
.* => any
then try to match ONE not "}"
So either use ( omit spaces, they are for readability)
\{ \$ .*? \}
or
\{ \$ [^ \} ]* \}
More information about the Lazarus
mailing list