1
vote
Vote UpVote

GExperts: searching for case-insensitive “T*List.Create” but not “TStringList.Create”

The Wiert Corner – Just learned that partial exclusion can be done with the case-insensitive GExperts Grep Search like this: T[^s][^t][^r][^i][^n][^g].*List.*\.Create This will skip TStringList.Create, but matches TMyList.Create. I’d rather have done something like this, but the Delphi RegEx does not support negative lookbehind: ^ *[a-zA-Z0-9_]* *: *T(<!string)[a-zA-Z0-9_]*ListO? *;$ So the alternative is to search for this: ^ *[a-zA-Z0-9_]* *: *T[a-zA-Z0-9_]*ListO? *;$ then exclude all the case insensitive TStringList entries from it, however GExperts did not support that at the time of writing. This ...
Favorite? Off-Topic? jpluimers @ 2019-05-02 13:04

Statistics

Visits: 110
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)