Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Search in a text file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01520080
Message ID:
01520093
Vues:
47
>>>
>>>
>>>o_regexp1=NEWOBJECT("_regexp","c:\program files (x86)\microsoft visual foxpro 9\ffc\_regexp.vcx")
>>>o_regexp1.Pattern = "%[^.]VFP2SQL%"
>>>lnOcc = o_regexp1.Execute(FILETOSTR(GETFILE()), .t.) && .t. -> Case sensitive
>>>DISP MEMO LIKE o_regexp1.matches
>>>
>>
>>This doesn't seem to work.
>
>You need to "escape" the dot by adding a backslash before it, so instead of [^.] use [^\.], otherwise it means any character (with few exceptions) not sure why Borislav uses the %, it is probably something for the regexp class?

No, this is from TSQL :o)))))
Nothing common with regexpr
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform