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:
00747718
Views:
28
>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?

As I see it, there is no need to include this as a feature in any language anymore as it is actually supported by the OS (trough the Scrip Host). I think having this as common functionality from any development platform is a good decision.

I'm not sure, but I *guess* that the RegEx class in .NET must internally use the same engine that WSH is using.

It's as simple to use as:
oRegEx = CREATEOBJECT("VBScript.RegExp")
oRegEx.Pattern = "(\w+)@(\w+)\.(\w+)"
? oRegEx.Test( "martin.salias@mug.org.ar" )
Regards,
Previous
Reply
Map
View

Click here to load this message in the networking platform