> consider the current position I have is "1.1.2.1.3"
>
> I need to extract the following values:
>
> 1
> 1.1
> 1.1.2
> 1.1.2.1
> 1.1.2.1.3
I don't think there's a way to get that with a single regex... But this
would work
<cfset a = [] />
<cfloop index="x" list="1.1.2.1.3" delimiter=".">
<cfset temp = a[arraylen(a)] />
<cfset temp = listappend(temp,x,".") />
<cfset arrayAppend(a,temp) />
</cfloop>
--
s. isaac dealey ^ new epoch
isn't it time for a change?
ph: 781.769.0723
http://onTap.riaforge.org/blog
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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/regex/message.cfm/messageid:1192
Subscription: http://www.houseoffusion.com/groups/regex/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21