How to search using regular expression in Delphi 7

Asked

Viewed 191 times

1

In Delphi 7 when opening the search dialog box: CTRL+F and selecting the option: Regular Expressions would like to find everything that starts with the word Gpfield and ended with Isnull

For example, I have the code:

if GPField('TABELATAXAS').IsNull then 
if GPField('TABELACARNE').IsNull then

I’d like to research something like:

GPField*IsNull

Which would bring me the two lines of code above.

How could I do that?

1 answer

3

GPField.*IsNull

The expression will be true for any character (.) which appears 0 or n times (*) amid GPField and IsNull, bringing the lines you mentioned in your question.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.