1

Output of Regular expression

view story
linux-howto

http://www.linuxquestions.org – Hi, Let's say I have the following file: Code: [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] Then I issue the following command: Code: egrep  "[^_]+([a-z0-9_])+([^_])@example.(org|com)((\.)([a-z]){2})?" tmp/mails The output is: Code: [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] (HowTos)