Kelly,

Let me preface this with "I AM A TOTAL REGEX NEWBIE!!!".

I tried this and it seems to work, but I had to do 2 REreplaces.

<cfset myPhrase = '125072 <A
HREF=""><cfset myNewPhrase = rereplace(myPhrase,
'[<][Aa][\s][Hh][Rr][Ee][Ff][=][^>]*[>]', '', 'all')>
<cfset myNewPhrase = rereplace(myNewPhrase, '[<][/][aA][>]', '', "All")>

This returns 125072 CIMG0131.JPG~

Hope this helps.

Steve


-----Original Message-----
From: kelly [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 4:51 PM
To: CF-Talk
Subject: Re: REgEx Help - Ben


I apologize if this is a dupe, my mail is acting odd today.

Ben I'm using CF MX and here is an sample of text I actually will be using.

125072 <A HREF="">
For each line above I need to remove <A
HREF="" and </a> but leave what's in
between (CIMG0121.JPG) and what comes before <a HREF
So the end result would be 125072 CIMG0131.JPG~

Each line will be the same as far as the order everything comes in, just
different text.

Hope that makes sense?
Kelly
  _____  

[ Todays  
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to