If this is in a larger page context, I probably wouldn't use (.*) since that
would grab everything from the open anchor tag to the /last/ closing anchor
tag.  I'd use
([^<]*)
However, if that's your whole context, Jochem's answer works great.


--  Ben Doom
    Programmer & General Lackey
    Moonbow Software, Inc

: -----Original Message-----
: From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
: Sent: Friday, March 14, 2003 6:23 AM
: To: CF-Talk
: Subject: Re: SOT: RegEx Help!
:
:
: Oliver Cookson wrote:
: >
: > Im looking for this string (see bottom) and want to remove EVERYTHING
: > except the word "a string here". This string could be any length or any
: > combo of chars\integers.
: >
: > Also the JS arg (14) is dynamic so that could be any number, everything
: > else is static.
: >
: > <A class=jargon href="javascript:popUpJargonDefinition(14)">a string
: > here</A>
:
: Do you mean this string is part of a larger text? Use:
: <cfset text = REReplaceNoCase(text,'^.*<A class=jargon
: href="javascript:popUpJargonDefinition([0-9]*)">(.*)</a>.*$',"\1")>
: else:
: <cfset text = REReplaceNoCase(text,'<A class=jargon
: href="javascript:popUpJargonDefinition([0-9]*)">(.*)</a>',"\1")>
:
: Jochem
:
: 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to