On Tue, 15 Jun 2010 11:12:52 +0300 Juha Manninen <[email protected]> wrote:
> 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].+) This would miss TIntLa and TIntaX > but I am sure it could be written in a cleaner way. ^Tnt(([^L]|.[^X]).+) > Then there is another regexp that captures string after "TntLX": > > ^TntLX(.+) > > and that is no problem. Mattias -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
