Quote:
Originally Posted by Ashjuk
This is why I find REGEX so confusing.
When I was searching various REGEX sites for the code I could not find a clear answer, and it appears from your replies there are numerous ways of achieving the same result.
Becky - "[A-Fa-f0-9-]+"
theducks - ".+?"
BillPearl - "([^>]+)(.*?)"
JSWolf - "(.*)"
and
DiapDealer - "[^"]+"
I only tried Becky's solution, which worked perfectly, but I assume all the above would have achieved the same result.
So I'm now even more confused. My poor septuagenarian brain is never going to cope
But thanks to everyone for their suggestions - I have noted them all for future reference.
|
When the id I want to get rid of is in the format of id="ch1", I use id="ch[0-9]+" That gets rid of the chapter based ids.