Techiio-author
Started by Chris GillOct 30, 2021

Open
Notepad++ Find in HTML string

2 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 2 VIEWES SHARE

I have an html report I'm enhancing in notepad++. It has round one thousand hyperlinks like below in a file that is 60,000 traces lengthy:

<a href="https://www.example.com/quizzes/view/#" class="btn discussion-button-print-none">

<i class="fa fa-comment"></i>

&nbsp; Discussion &nbsp;

<span class="badge badge-pill badge-light">4</span>

</a>

I need the whole hyperlink <a href... - '/a> long past. The problem I maintain going for walks into is the quantity in among the span tags is distinct. Above it's miles 4. I need to discover all of them and replace them with clean areas. I was trying to mess around with a few different regex alternatives I examine approximately even as looking for a solution however none worked for me.

1 Replies

Techiio-commentatorPOULAMI SARKAR replied 5 days ago0 likes0 dislikes

I found I was easily able to do this with my Sublime text editor with a wildcard(.*) Notepad++ was NOT the way to go.:

<a href="https://www.examtopics.com/exams/comptia/sy0-501/view/#" class="btn btn-secondary question-discussion-button d-print-none">
<i class="fa fa-comment"></i>
&nbsp; Discussion &nbsp;
<span class="badge badge-pill badge-light">.*</span>
</a>

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance