CF5 doesn't support Perlish character classes (ie "\w").

IIRC, you can use [[:alnum:]] to replace them.

BTW -- are you sure this is a direct copy from the book (aside from the
\1 vs $1 change)?  It looks odd in several ways to me.

--Ben

Josen Ruiseco wrote:

> I am using the following and I get the email address twice. The second string is not a link.
>
> <cfset newString = "[EMAIL PROTECTED]">
> #newString#<br>
> <cfset newString = reReplaceNoCase(newString, "([EMAIL PROTECTED])", "<a href=""> > #newString#<br>
>
> Am I not doing something right? I'm on CF5.
>
> Josen
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to