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
>In CF it is \1 : "<a href="">
>
>Pascal
>
>> -----Original Message-----
>> From: Josen Ruiseco [mailto:[EMAIL PROTECTED]
>> Sent: 08 September 2004 19:27
>> To: CF-Talk
>> Subject: RegEx Problem Trying to Use Matched Text
>>
>> I am trying to follow the regex example on page 82 of Ben Forta's
>"regular
>> Expressions in 10 Minutes" book. The example does a simple replace
>using
>> matched text and reReplaceNoCase().
>>
>> <cfset newString = "[EMAIL PROTECTED]">
>> #newString#<br>
>> <cfset newString = reReplaceNoCase(newString,
>"([EMAIL PROTECTED])",
>> "<a href="">
>> #newString#<br>
>>
>> The problem is that it doesn't seem to replace the matched text when
>using
>> the $1.
>>
>> Am I missing something here?
>>
>> Josen
>> GoMotorsBids.com
>>
>>
[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