View Single Post
Old 10-05-2024, 07:39 AM   #5
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,661
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
If you absolutely need the </h3> in the search to get the right matches, consider using a positive lookahead to avoid capturing/replacing it:

Code:
<a id="_idTextAnchor\d+"></a>(?=</h3>)
Then replace with nothing,

Or you can capture the /h3 and make sure it stays by using it in the replace expression:

Code:
<a id="_idTextAnchor\d+"></a></h3>
Then replace with:

Code:
</h3>

Last edited by DiapDealer; 10-05-2024 at 08:34 AM.
DiapDealer is offline   Reply With Quote