holy crap that is really cool :) On Thu, Mar 19, 2009 at 3:02 PM, Dominic Watson < [email protected]> wrote:
> > This also does it quite nicely: > > <cfset list = ArrayToList( myString.toCharArray() ) /> > > Dominic > > 2009/3/19 Peter Boughton <[email protected]>: > > > >>holy crap that is really cool :) > > > > Yep. :) > > > > > > For a full explanation of the last regex there: > > > > \B|(?<!^)\b(?!$) > > > > Summarised as "Any char boundary that is not at the start or end of the > text". > > > > In detail... > > > > \B # as above, any WordChar-WordChar or NonWordChar-NonWordChar > boundary. > > | # or (not inside parens, so applies to whole expression) > > (?<!^) # negative lookbehind - next match must not occur after ^ (where ^ > = start of text) > > \b # any WordChar-NonWordChar or NonWordChar-WordChar boundary > (opposite of \B) > > (?!$) # negative lookahead - previous match must not occur before $ > (where $ = end of text) > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:320730 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

