Use the number character class.

<cfsavecontent variable="test">
testId67Text more text more text testId49Text more text testId54Text more text
</cfsavecontent>

<cfset numbers = reMatch("[[:digit:]]+", test)>
<cfdump var="#numbers#">


On Nov 5, 2007 9:30 AM, Web Exp <[EMAIL PROTECTED]> wrote:
> Hi. I have a bunch of text in a db table that has multiple occurances
> of this pattern:
> "testId67Text more text more text testId49Text more text testId54Text more 
> text"
>
> How can I get all the numbers from it? i need 67,49,54.
>
> I know it need regex. But I need help.
>
> Thanks,
> K
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292655
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