How can I use regular expressions in Textpad to remove anything, line by line, before specified characters?

StackOverflow https://stackoverflow.com/questions/21587482

  •  07-10-2022
  •  | 
  •  

Question

aaaaa1bbbbb
ccccc2ddddd
eeeee3fffff

I want to remove all characters before numbers, after replacing file, it should look like

bbbbb
ddddd
fffff
Was it helpful?

Solution

In Find and Replace dialog box enter these values:

  1. Find what : ^[a-z]+[0-9]
  2. Replace with : Do not enter anything
  3. Make sure to select Regular Expression checkbox.
  4. Hit Replace All
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top