On CFMX only:  rereplace(origVar, "(\sIi+\s)", "\U\1\E", "All")

> -----Original Message-----
> From: DURETTE, STEVEN J (AIT) [mailto:[EMAIL PROTECTED]
> Sent: woensdag 4 februari 2004 15:05
> To: CF-Talk
> Subject: Need regex / rereplace help.
>
> I need some quick help with a regex.
>  
> I need to replace Ii, Iii, Iiii, etc with II, III, IIII, etc.
> and it is part of a longer string (these characters are
> surrounded by spaces).
>  
> I can find the chars with this regex:  [\s][I]i+[\s]  (I used
> the Visual Regular _expression_ Editor),
>  
> but I don't know how to do the update.
>  
> <cfset myVar = rereplace(origVar, "[\s][I]i+[\s]", ?????, "All")>
>  
> Thanks,
> Steve
>  
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to