Adrian, Azadi... Thanks, that worked.  

-----Original Message-----
From: Azadi Saryev [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 14, 2008 10:35 AM
To: cf-talk
Subject: Re: Simple regex question...

how about just
left(string, len(string)-len(listlast(string, "-"))-1) ?

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Che Vilnonis wrote:
> Morning all. I need a RegEx to strip all of the characters that appear 
> after the *last* dash in a string (the last dash needs to be stripped as
well).
> How would I do something like that? Sample data is below. Thanks!
>
> 2995,2818-5
> 33054--2
> 3320-4
> 7789-4(1)
> 3641-45-1
>
> Che Vilnonis
> Application Developer
> Advertising Systems Incorporated
> 8470C Remington Avenue
> Pennsauken, NJ 08110
> p: 856.488.2211
> f: 856.488.1990
> www.asitv.com
>
>   



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313856
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to