Reputation: 143
I have few text files from which :
I need to delete all numbers(0 to 9), special characters(they are "{" and "[") and all the words containing a "#" ( for eg, good#boy, very#good#boy a#very#good#boy)
How can I do this with Notepad++? Thanks.
Upvotes: 0
Views: 2785
Reputation: 6935
With the help of regular expressions it's easy. Go to Search
> Replace
menu (shortcut CTRL+H) and do the following:
Find what:
[0-9\{\}\[\]]|[a-zA-Z]+\#[a-zA-Z\#]+
Replace with:
[leave empty!]
Select radio button "Regular Expression"
Then press "Replace All"
You can test it at regex101.
Upvotes: 1