You are confusing regular expression with shell globbing. If you want to use regular expression to match file names you could do:
$ ls | egrep '.+\..+'
More Related Contents:
- Regular expressions in a Bash case statement
- What are the differences between glob-style patterns and regular expressions?
- Create regex from glob expression
- Reg-ex to validate a sting with digits only but all Zeros are not allowed [closed]
- Why doesn’t [01-12] range work as expected?
- Regular expression for a string containing one word but not another
- How do I use regex in a SQLite query?
- MongoDB Regex Search on Integer Value
- Regular expression for letters, numbers and – _
- How to replace all strings to numbers contained in each string in Notepad++?
- List files not matching a pattern?
- Is the regular expression [a-Z] valid and if yes then is it the same as [a-zA-Z]?
- How do I make case-insensitive queries on Mongodb?
- Why does character range class [A-z] match underscore?
- How do I find and remove duplicate lines from a file using Regular Expressions? [closed]
- How to match a regex with backreference in Go?
- Regex to first occurrence only? [duplicate]
- What’s the difference between () and [] in regular expression patterns?
- Regular expression for password (at least 2 digits and one special character and minimum length 8)
- How does one escape backslashes and forward slashes in VIM find/search?
- Find the location of a character in string
- Regular Expression only match if String ends with target
- How can I match a string with a regex in Bash?
- Why does sed require 3 backslashes for a regular backslash?
- Visual Studio Code Search and Replace with Regular Expressions
- Rename files using a regex with bash [duplicate]
- What’s the meaning of a number after a backslash in a regular expression?
- regular expressions: match x times OR y times
- Extract a string between patterns/delimiters in R
- ElasticSearch and Regex queries