Not to mention that many of the examples given are very inefficient ways to do what's needed. Specifically, looking for files with "5" in the name:
$ ls | grep -e .*5.*
Would be better as: $ find . -name '*5*'
or if you insist on using a regex: $ find . -regex '.*5.*'