-name pattern
Base of file name (the path with the leading directories removed) matches shell pattern pattern. The
metacharacters (`*', `?', and `[]') match a `.' at the start of the base name (this is a change in
findutils-4.2.2; see section STANDARDS CONFORMANCE below). To ignore a directory and the files under
it, use -prune; see an example in the description of -path. Braces are not recognised as being spe‐
cial, despite the fact that some shells including Bash imbue braces with a special meaning in shell
patterns. The filename matching is performed with the use of the fnmatch(3) library function.
Don't forget to enclose the pattern in quotes in order to protect it from expansion by the shell.
-regextype type
Changes the regular expression syntax understood by -regex and -iregex tests which occur later on the
command line. Currently-implemented types are emacs (this is the default), posix-awk, posix-basic,
posix-egrep and posix-extended.
-regex pattern
File name matches regular expression pattern. This is a match on the whole path, not a search. For
example, to match a file named `./fubar3', you can use the regular expression `.*bar.' or `.*b.*3',
but not `f.*r3'. The regular expressions understood by find are by default Emacs Regular Expres‐
sions, but this can be changed with the -regextype option.