Quote:
Originally Posted by rolgiati
Here is a snippet:
looks like <a class="pcalibre" href="http://books.google.com/books?id=98PYVYGFCIIC&pg=PA54&lpg=PA54& ;dq=dimethylcadmium&source=bl&ots=oK-NDQqout&sig=wDDF0qwknz3G-twxMl_6B8Di5lk&hl=en&sa=X&ei=IhSDUdyMD NW-4AO51oCYAw&ved=0CDMQ6AEwATgU#v=onepage&q=d imethylcadmium&f=false">extremely tedious work</a>, which allows you
In this exemple I would like to be able to remove everything from <a class to false">, and </a>, without loosing extremely tedious work.
|
I realize this is long solved, but I do these things all the time, so even a late reply might help someone.
The regex would be to replace <a\x20[^\r\n<>]+http[^\r\n<>]+>([^\r\n<>]*)</a> with $1. The link would be removed, and the text, if any would be retained. Only possible problem is if the </a> is missing.
If further explanation is wanted by anyone, let me know.
John