`What does the regular expression for "email:password" look like?
U
U
urbanmash2019-02-25 17:55:57
linux
urbanmash, 2019-02-25 17:55:57

What does the regular expression for "email:password" look like?

There is a ready-made

([a-z0-9,!#\$%&\*\+/=\?\^_`\{\|}~-]+(\.[a-z0-9,!#\$%&\*\+/=\?\^_`\{\|}~-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*\.([a-z]{2,})[ ]?:.*)

however, when used with grep it doesn't output anything
Example file
[email protected]:123
[email protected]:1234

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-02-25
@urbanmash

What about egrep?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question