> string = replace(string,"&","&","all")>
> string = replace(string,"&","&amp","all")>

This code would spoil all non-ampersand character entities.
"•" would become "•", "é"
would become "é"... you see the problem.

Someone on another list mention Perl's support for
"zero-width negative look-ahead assertions", saying
Perl could cover my problem with "&(?!#?[\w]+;)".

Not sure about this, but does anyone know about CF
support for this feature of Perl's regex support?

- Gyrus

~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- [EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://www.norlonto.net
- PGP key available
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to