Languages
[Edit]
EN

Notepad++ - regex to replace time formatted (X minutes and Y seconds) with empty lines (digits)

4 points
Created by:
Aisha
328

Time is formatted as follow: X minutes and Y seconds, examples:

5m 49s
13m 51s

Regex:

(\d+m \d+s)|(\d+s)

Before: 

5m 49s
text 1
3m 49s
text 2
9s
text 3
2m 59s

After:


text 1

text 2

text 3

Ensure to select Regular expression in Search Mode.

 

After that if we want to remote empty lines, we select: 

  • Edit
  • Line Operations
  • Remove Empty Lines

Link:

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join