Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Regular expressions w/ Foxpro?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00746548
Message ID:
00747714
Views:
26
>Hi, Naoto.
>
>>My guess is that the original poster had requested information the ability to perform searches using expressions like " \ < this \ >" where the " \ < " and " \ > " signify the beginning and ending of a word respectively (this is the expression used by the grep utility in UNIX). The AT() and ATC() functions will only tell you if a substring exists, but will sometimes yield a false match. For example you search for "word" in the string "wordprocessing", the AT() and ATC() functions will return false matches if you're interested in strictly the existence of the word "word". I don't know if regexp type searches have been implemented in VFP.
>
>I though that he was looking for that also, as those are really regular expressions, but after his anser to the first reply, it seems that what he needs is simpler, indeed. Regular expressiones can be easily handled by uise of the Windows Script Host, as George pointed. What he humbly avoided to mention is that he and the late Ed Rauh wrote an EXCELLENT series of articles about WSH with a chapter specially dedicated to RegEx.
>
>The articles can be found at the VFUG newletter archive, and in a Spanish version (which I have the honour to translate) in the MSDN Latam site.
>
>By the way, Nihongo hanase masu ka? 8-)

Yes, I was needing a simple string search and I immediately assumed a regular expression function. I was overlooking the simple method you guys gave me, but it did frustrate me to see that Foxpro doesn't natively support what should be considered a basic language feature, especially for a data-centric language.
Why is this not an added feature at this point in VFP's existence?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform