I have string in txt file
cat list.txt
userone@ex.com, usertwo@ex.com, userthree@ex.com
and i want to print every user login w/o @ex.com each new line and try to use regexp with linux grep
grep -oe '[a-z](?=@ex.com,)' list.txt
but nothing happens, why? It will be like:
userone
usertwo
userthree
Thanks.