Delete each line with less than 4 words and...
Posted: Mon May 02, 2011 11:06 am
I need to delete every line that contains less than 4 words or more than 10.
What can I do?
What can I do?
forums.textpad.com
https://forums.textpad.com/
Remove lines that contain fewer than 4 words:Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
Remove lines that contain more than 10 words:Find what: ^(\<[a-z0-9_']+\>[^a-z0-9_']*){1,3}\n
Replace with: [nothing]
[X] Regular expression
Replace All
Find what: ^(\<[a-z0-9_']+\>[^a-z0-9_']*){11,}\n
Replace with: [nothing]
[X] Regular expression
Replace All
Remove lines that contain more than 10 words:Find what: ^[^a-z0-9_']*([a-z0-9_']+[^a-z0-9_']+){0,2}[a-z0-9_']+[^a-z0-9_']*\n
Replace with: [nothing]
[X] Regular expression
Replace All
Find what: ^[^a-z0-9_']*([a-z0-9_']+[^a-z0-9_']+){10,}[a-z0-9_']+[^a-z0-9_']*\n
Replace with: [nothing]
[X] Regular expression
Replace All
<Esc>Find what: mybuyeraddress
Mark All