Regex: Match beginning and end of file in Notepad++

spiros

  • Administrator
  • Hero Member
  • *****
    • Posts: 821560
    • Gender:Male
  • point d’amour
Match beginning and end of file in Notepad++
beginning: \A
end: \Z

Regular expression option must be checked.

So, for example, if you want to match from the beginning of the file, to a certain point further down the file, you could try (having checked . matches newlines):

\A(.*?)<td>

This will match up to the first instance of <td>  (non-greedy match)
« Last Edit: 25 Oct, 2020, 10:39:54 by spiros »


 

Search Tools