Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RegEx
Message
De
08/03/2021 16:34:57
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
08/03/2021 16:14:55
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: RegEx
Divers
Thread ID:
01678797
Message ID:
01678803
Vues:
54
>>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]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform