Page 1 of 1

Removing link..

Posted: Thu Feb 15, 2018 5:39 pm
by norfeem
I currently have a Simple Find reg expr that is working perfectly
<a href="*>?</a>
I want to replace above leaving only the ? values example when I search
My Results are

<a href="">123</a>
<a href="" target="_blank">789</a>
<a href="">456</a>

I want to replacement to be


Is the replacement as simple as

Re: Removing link..

Posted: Thu Feb 15, 2018 6:57 pm
by Abacre
You should use regular expressions here.
Go to Batch Replace tab.
Check Use Regular expressions.
You should use:
Search for:
<a href="https://www\.yyyy\.com".*>(\d+)</a>

Replace with:

\d - any digit
\d+ - one or more digits
.* - any text (even empty).
() is used to capture the number.
$1 in replace part is used to put the captured number.

\. is used to escape . because dot is reserved char.