yes ..

oh, I suppose you want to how-to too? :-)

ReReplaceNoCase(String,"([0-9])th", "\1whatever","all")

the \1 is the trick. Called a backreference..

WG 

> -----Original Message-----
> From: Kola Oyedeji [mailto:[EMAIL PROTECTED]]
> Sent: 13 December 2002 15:31
> To: [EMAIL PROTECTED]
> Subject: [ cf-dev ] Quick regular expression question
> 
> 
> 
> Hi
> 
> Quick regex question, is it possible to replace all occurrences of 'th'
> in a string where 'th' is preceded by a single number * without *
> replacing the number as well. Is this possible in a single regular
> expression?
> 
> 
> Thanks
> 
> Kola
> 
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to