Ray,
The notations are pretty similar.

REReplace( strTest, "[_12]+", "", "ALL" )
This looks for any combinations of 1 or more combinations of _,1 or 3.  It
is a greedy notation.

ReReplace (MyString, "_|1|2", "", "all")
This is more logical oriented meaning that _ or 1 or 2 exists, then remove
it.

The only problem with both of these is that they will get red of _,1 or 2
from anywhere in your string.

You would need a different RegEx if you just want to remove trailing
characters.

Teddy

On 9/27/06, Bobby Hartsfield <[EMAIL PROTECTED]> wrote:
>
> rereplace(str, '1|2|_', '', 'all')
>
>
> -----Original Message-----
> From: Ray Champagne [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 27, 2006 2:16 PM
> To: CF-Talk
> Subject: regexp help
>
> Can some tell me what the regexp would be to remove all instances of _ or
> 1
> or 2 (that's underscore OR one OR two) from a string?
>
>
>
> Like ffmpti_2 would become ffmpti or carfeed1 would become carfeed.
>
>
>
> Thanks
>
>
>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254496
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to