Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RegExp
Message
From
24/02/2013 03:46:04
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Re: RegExp
Miscellaneous
Thread ID:
01566815
Message ID:
01566819
Views:
59
>Can you post full code for it?
>
>>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],' ')

I think you have to set the pattern as a property:
oRe.Pattern="Viv"
? oRe.Replace("Was Viv Here","Grady")
Previous
Reply
Map
View

Click here to load this message in the networking platform