Doom

It seems to be working fine except if there is more than one character between 
the sets, it one return the proper count. ie. it won't find the sets.

ex sdrsd will reutrn true or 1
but sdthrsd will return false or 0.

any thoughts

and thanks for all of your help.

>Sure.  It follows basically the same principle.
>
>([a-z0-9]{2}).?\1
>
>This is, btw, a fairly inefficient regex, so I wouldn't run it against, 
>say, a K of data at a time, but for 8 chars, I expect the regex engine 
>overhead will be larger.  In other words, for your purposes, it's fine.
>
>(Not tested, YMMV)
>
>--Ben "HoF Regex Ninja" Doom
>
>Kenny Kinds wrote:
>>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289424
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to