Search code examples
notepad++sublimetext3

Sublime Text Regular Expression (Select line below a specific character)


I try to select specific lines because I'm a translator, here I tried this command: "(>)(.*\n){2}(.*)" but I don't want the first line, only the one below the ">" character, (below the timer)

What I have tried:

enter image description here

What I want:

enter image description here

Thank you.


Solution

  • Using Notepad++.

    • Ctrl+F
    • Find what: >.+\R\K.+
    • CHECK Regular expression
    • UNCHECK . matches newline
    • Find All

    Explanation:

    >.+     # > followed by 1 or more any character but newline
    \R      # any kind of linebreak (i.e. \r, \n, \r\n)
    \K      # forget all we have seen until this position
    .+      # 1  or more any character but newline