EN
Notepad++ - regex to replace time formatted (X minutes and Y seconds) with empty lines (digits)
4
points
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: