Forrest logo
back to the grep tool

grep:ai:e6db3

How do I create a regex for all valid emails?
$ grep -Eio '${a-zA-Z0-9._%+-}+@${a-zA-Z0-9.-}+\.${a-zA-Z}{2,}'
try on your machine

Regular expression to match all valid email addresses in a text file using grep command in Linux

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • How do I create a regex for all valid emails?
back to the grep tool