View Single Post
Old 07-07-2013, 03:29 AM   #5
Ahmad Samir
Zealot
Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!
 
Posts: 114
Karma: 5246
Join Date: Jul 2010
Device: none
Quote:
Originally Posted by cybmole View Post
find <a .*</a>
replace with nothing
- takes out all links, assuming there is nothing of value inside the anchor tags.

be careful because I've had instances where chapter names/numbers are also inside of those & thus a more complex expression is needed to preserve them
I'd use
<a .*?</a>
to make the matching non-greedy.

@rolgiati: it always helps if you post a snippet of the HTML code you want to modify.
Ahmad Samir is offline   Reply With Quote