Need Help For Remove a href Tag With out remove anchor Text
-
<a href=“site.com”>hello</a>
Need Only "Hello"Text From Above HTML CODE How to do Using Regular Experssion
-
Hello, @smart-warriors and All,
If we assume that the strings
<a href=and</a>are, both, on one line, only, I suppose that the following regex does the job :-
Open the Mark dialog (
Ctrl + M) -
SEARCH
(?s)<a href=.+?>\K.+?(?=</a>) -
Possibly, check the
Wrap aroundoption -
Select the
Regular expressionsearch mode -
Click on the
Mark Allbutton -
Then, click on the
Copy Marked Textbutton -
Open a new tab (
Ctrl + N) -
Paste the clipboard’s contents (
Ctrl + V)
If all your
<a href=.....>........</a>definitions are contained in a single line, you may use the more restrictive regex :MARK
(?-s)<a href=.+?>\K.+?(?=</a>)Best Regards,
guy038
-