Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search in a text file
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01520080
Message ID:
01520093
Views:
46
>>>
>>>
>>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform