You might consider just stripping out everything that is not a number
(but that might cause problems):

#REReplace( YOUR_LIST, "[^\d]+", ",", "ALL" )#

Where YOUR_LIST ist he string that has all that member output.

This would give you:

,1000,87,173,

Notice that there is a leading and trailing empty list item. ColdFusion
will ignore these when you try to do future list manipulation stuff.


......................
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-----Original Message-----
From: Richard Cooper [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 27, 2007 10:20 AM
To: CF-Talk
Subject: Regex

Hi all,

I'm really not very good with regex, but I need to extract a list of
member numbers. The numbers are contained in a list like this:

John Smith (mid: 1000), Peter Pan (mid: 87), Harry Harrison (mid: 173),

How would I go about doing this?




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

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