Extglob (extended pattern matching) is a form of wildcards supported by bash. With extglob a pattern can be almost as powerful as a regular expression.
Extglob must be enabled before using:
$ shopt -s extglob
Several extended pattern matching operators are then recognized.
?(pattern-list) Matches zero or one occurrence of the given patterns
*(pattern-list) Matches zero or more occurrences of the given patterns
+(pattern-list) Matches one or more occurrences of the given patterns
@(pattern-list) Matches one of the given patterns
!(pattern-list) Matches anything except one of the given patterns
References: