Of course, looking at what you're actually doing, could you not just do this:
<cfoutput>#rereplace( InputString , "^.*?([0-9]{7}).*$" , "\1" )#</cfoutput>
(where InputString is your ";00002720?", or whatever the real input is)
That should result in removing everything except the first set of seven digits
- no arrays involved.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:313693
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4