Search code examples
regexcharacternotepad++

Regex - Match the last 5 characters at the end of file


I need solution to match the last 5 characters of text file.

I try this, but is not working.

.{5}\z

Can anyone help me?


Solution

  • The solution:

    FIND: [\s\S]{5}\z