Because of ©

I don't want that to get changed. In the end, something like:

s/&(?!\w+|[#\d]+;/&/g

Works. That might not be quite right, but I think you know what I'm getting at.

Rob Dixon wrote:

Jenda Krynicky wrote:

Toby Stuart wrote:

Try this one:

s/&(?!\w+;)/&/g

Problem is that this will break things like
@


Why not just:

s/&(?!amp;)/&/g

i.e. change every ampersand that isn't followed by 'amp;' into &

Rob







--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to