Are you using ColdFusion?
No need to use RegEx, it's a list so:
<cfoutput>
<cfloop list="#position#" index="i">
#i#<br />
</cfloop>
</cfoutput>
Not a complete solution for you but you can see how to get at all the list
elements.
Adrian
Building a database of ColdFusion errors at http://cferror.org/
-----Original Message-----
From: is_maximum
Sent: 19 November 2008 13:14
To: regex
Subject: [URGENT] Incremental matches!
Hello
I have a string we call it position and this is in the form of '1.2.1.1'
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
or if position is "1.1.2"
I need:
1
1.1
1.1.2
is this possible by using Regex?
thanks
-----
--
Regards
Mohammad Norouzi
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:1189
Subscription: http://www.houseoffusion.com/groups/regex/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21