Okay, I still suck at regex.

I'm trying to write a regex to determine if there are any unbalanced
parens in a string. Anyone want to help me out here?

I thought it should be something like so:
<cfset string = "(1bdcd$$%">

<cfset found = refind("\(*[:print:]^\)", string)>

Find any open paren, followed by 0-many printable chars NOT followed
by close paren. But, this returns zero.

The reality is that this wouldn't do it anyway, cause it doesn't test
for the occurrence of a single closing paren.

I'm trying to trap characters that ldap doesn't like as a dn, by the
way - if that helps any.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:252331
Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5

Reply via email to