[Lazarus] Regexp syntax

Juha Manninen juha.manninen at phnet.fi
Tue Jun 15 10:12:52 CEST 2010


Hi

any regexp gurus out there?
For converter I need a regexp that matches a string starting with "Tnt", not 
followed by "LX" and captures everything after "Tnt". This actually works:

  ^Tnt([^L][^X].+)

but I am sure it could be written in a cleaner way.


Then there is another regexp that captures string after "TntLX":

  ^TntLX(.+)

and that is no problem.

Juha




More information about the Lazarus mailing list