|Do you know where your variables are?|
Need a regex to replace incomplete html entitiesby Chris Daniel (Novice)
|on Nov 20, 2016 at 10:30 UTC||Need Help??|
Chris Daniel has asked for the wisdom of the Perl Monks concerning the following question:
Just need a help in regex. I have xml file, but unfortunately some of xml tags consists of incomplete html entities. I was looking for a regex that would remove the incomplete html entities.
In above example,  is incomplete html entity of & So I need to remove such incomplete data.
I have tried to apply the sed command, but it removes when the pattern is matched.
I basically want to replace the string &,&#,,&</c> to blank, but it should not replace </c>&
Please help me.