How do I delete text between 2 characters?
For example I have:
Apple:123456789:pear
watermelon:57952161354:kfc
How do I delete the text that's between the ":" to get this:
Apple:apple
watermelon:kfc
Solution 1:
How do I replace all text between 2 :
s with a single :
?
Menu "Search" > "Replace" (or Ctrl + H)
Set "Find what" to
:.*?:
Set "Replace with" to
:
Enable "Regular expression"
Click "Replace All"
Before:
Apple:123456789:pear
watermelon:57952161354:kfc
After:
Apple:pear
watermelon:kfc
Further reading
- Notepad++: A guide to using regular expressions and extended search mode