>>
>>
>>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.)
>>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?
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges