Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RegEx
Message
From
23/10/2012 11:15:15
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: RegEx
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01555501
Message ID:
01555550
Views:
38
>Hi Gregory,
>
>I've run that code, but it doesn't do what I need. I want to replace the numbers with X, e.g. the resulting string should be
>'abcXXXXXXXXXXXXXXXXfd'
>

Or (1)
>&& With replace()
>
>&& if is optional
>if( m.loRegExp.Test(m.lcString) )
>	? 'old: ', m.lcString 
>	lcString = m.loRegExp.Replace(m.lcString, '$1$2X$3')

	lcString = m.loRegExp.Replace(m.lcString, '$1' + repl('X', 16) + '$3')



>	
>	? 'new: ', m.lcString 
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform