You could use

REReplace(str, "&([^A-Za-z0-9])", "&\1", "all")

On Fri, 2008-05-09 at 11:30 +1000, Seona Bellamy wrote:
> Hi guys,
> 
> Hopefully a quick and easy one for someone - I'm sure this is going to
> be one of those things with an easy fix I'm just not seeing!
> 
> I'm pulling in an XML file via an RSS feed. It has some &'s which are
> not encoded as & and some which are (as well as a smattering of
> "'s and other entities). Apparently, those unencoded &'s are what
> is preventing me running this data through xmlParse().
> 
> Is there a way in which I can isolate those unencoded &'s and change
> them to & but leave every other & (ie, the ones already used as
> part of an entity) alone?
> 
> I tired running htmlEditFormat() over it, but that translated
> everything including the structural stuff and so I couldn't parse it
> anyway. :(
> 
> Cheers,
> 
> Seona.
> 
> > 
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to