+1 for the RegExr site. Skinner is awesome. 

-----Original Message-----
From: Che Vilnonis [mailto:ch...@asitv.com] 
Sent: Tuesday, July 20, 2010 12:12 PM
To: cf-talk
Subject: RE: Extracting part of a string (part 2)


Thanks Charlie.

I found that (\$\d+(\.\d+)?) works as well. The RegExr site was very
helpful.
http://www.gskinner.com/RegExr/

-----Original Message-----
For that specific string, \$(\S+) seems to work.  The \S is any character
that is not a whitespace character, so it'd work for $400.01 as well.
 \$(\w+) should also return the same result.


On Tue, Jul 20, 2010 at 8:24 AM, Che Vilnonis <ch...@asitv.com> wrote:
>
> I also have a regex I can't seem to get right and could you some help.
> Take the following string... "buick 322 engine (76023) $400 (dallas)"
>
> How would I extract just the price ($400) without the dollar sign?





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335556
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to