Maybe, but I'm telling you...once you make the leap and "get it" you'll
never go back.  I think regex might be the single greatest development tool
ever devised.  :-)

On 3/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Oh the lengths I'll go to in order to avoid writing a regex.
>
> <cfset mylist = "John Smith (mid: 1000), Peter Pan (mid: 87), Harry
> Harrison (mid: 173)">
>
> <cfoutput>
>     <cfloop list="#myList#" index="i">
>     <cfset numlen = len(Trim(listlast(i, ":"))) -1>
>         #mid(Trim(listlast(i, ":")),1,numlen)#<br/>
>     </cfloop>
> </cfoutput>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273868
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
  • Re: Regex Rob Wilkerson

Reply via email to