Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Regular expressions w/ Foxpro?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00746548
Message ID:
00747718
Vues:
30
>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,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform