Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RegEx
Message
From
08/03/2021 16:34:57
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
08/03/2021 16:14:55
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: RegEx
Miscellaneous
Thread ID:
01678797
Message ID:
01678803
Views:
53
>>I want the programs/methods that have a SQLEXEC followed by 'thealias' but not necessarily in the same line. This is close, but seems to be on the same line only.
>>
>>
sqlexec\(.*'thealias'\)
As far as I understand gofish, there is no option to regexp over more then a line (this is an internal regexp option what I do not see exposed. Stupid VB regexp has no switch in the pattern as far as I know.)
Otherwise it would be a pain with something like sqlexec\s*\([^\)]*['"\[]thealias['"\]].*\) what still not include new line(s)

My idea:
use gofish to look up ['"\[]thealias['"\]] - regexp, the alias in string delimiters. And then, filter on the result to find sqlexec in the same method / procedure. gofish owns the ability of a second run / filter to the result.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform