I tried to search in other questions here but none seem to work for me I'm using notepadd++ and i'm trying to remove everything but email from a email list where everything is in the same line.
Example:
| RONNAN FERREIRA | RENANRFCRON@GMAIL.COM 17933 | RONNE YAN CANAVARRO DE ASSIS |
This regex seems to select every email perfecly:
[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?
When i put $1
or \1
on "replace with" it just delete all the emails, i want it to do the opposite.