View Single Post
Old 06-22-2021, 09:25 PM   #3
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by larysa View Post
on this book i have more and more (inside text)
<a id="uRdWyYWgcwixJRsN9JboXZ6" class="calibre2"></a>

with different id="xxxxx" value. i want clean all this unnecessary string.
but how to search (& replace with nulled) this string all over the book?
The following regex should work:

Code:
<a id=".*?" class=".*?"><\/a>
The following would find all a tags whether they have attributes or not:

Code:
<a[^\>]*><\/a>
The replace string should be empty.
davidfor is offline   Reply With Quote