Remove the last part of every line in notepad++

If we have the lines:

and we want final lines become like this:

we can applied notepad++ to do it. The solution as follow:

1) Using notepad++ and go to the search. Please used the regular expression as search mode

2) search


index\ means search for word; .* means everything else; $ means the end of line.

3) then replace with


4) That should find everything after (and including) index.php, and replace it with just index.php.


Be the first to comment

Leave a Reply

Your email address will not be published.