Hmm, the result argument is displaying as just "[ampersand]", but I definitely
put "[ampersand]amp;" in it. :/
> Assuming what you're actually asking is how to escape any ampersands
> that are not part of an existing entity, try this...
>
> REReplace(Text,"&(?!([##A-Za-z0-9]{2,6};))","&","all")
>
>
> (because any non-entity ampersands must be escaped everywhere, not
> just in links)
>
>
> > Okay, I can usually figure out my regular expressions when needed,
> but
> > this one has me a bit stumped. Basically I have an unknown chunk of
>
> > text in which I need to make sure any URLs are XHTML-compliant...i.e.
>
> > any ampersands are escaped, if not already. I need to be sure to
> only
> > replace within the <a> tags, not the rest of the text, and to not
> > replace any ampersands that are already escaped. Anyone want to take
> a
> > stab at it?
> >
> > --- Mary
Jo
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7.
Free Trial. http://www.adobe.com/products/coldfusion
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272306
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4