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:
xxxxxxxxxx
1
5m 49s
2
13m 51s
Regex:
xxxxxxxxxx
1
(\d+m \d+s)|(\d+s)
Before:
xxxxxxxxxx
1
5m 49s
2
text 1
3
3m 49s
4
text 2
5
9s
6
text 3
7
2m 59s
After:
xxxxxxxxxx
1
2
text 1
3
4
text 2
5
6
text 3
7
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: