Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RegExp
Message
De
24/02/2013 06:47:39
 
 
À
23/02/2013 19:47:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Re: RegExp
Divers
Thread ID:
01566815
Message ID:
01566821
Vues:
55
>I am trying to make an VBscript object of RegExp work and am having trouble getting it to work.
>
>Unfortunately, the Syntax calls for the use of the word 'Replace' which VFP might be misinterpreting.
>
>Error is - OLE code 8002000e: Invalid number of parameters
>
>Could someone please post a way to make this work:
>
>Syntax is - RegexReplace( sInput, sPattern, sReplacement, nIgnoreCase) && Ignore case is optional
>
>oRe is the object of RegExp
>
>My attempt: lcTEXT = oRe.Replace(lcTEXT,[a-z],' ')

Pages 6 and 7 here http://www.atoutfox.org/modules/articles/pdf/0000000748.pdf

It's not up to date any more - later versions support positive and negative lookahead
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform