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]
- RegEx Problem Trying to Use Matched Text Josen Ruiseco
- RE: RegEx Problem Trying to Use Matched Text Michael Dinowitz
- RE: RegEx Problem Trying to Use Matched Text Pascal Peters
- Re: RegEx Problem Trying to Use Matched Text Josen Ruiseco
- Re: RegEx Problem Trying to Use Matched Tex... Ben Doom
- Re: RegEx Problem Trying to Use Matched... Josen Ruiseco
- Re: RegEx Problem Trying to Use Ma... Jeff Price
- Re: RegEx Problem Trying to Use Ma... Ben Doom
- RE: RegEx Problem Trying to Use Matched Text Jason Reichenbach