Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RegEx
Message
De
23/10/2012 11:15:15
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: RegEx
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01555501
Message ID:
01555550
Vues:
37
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform