PHP supports 2 types of regular expressions: POSIX and those used in Perl. Regular expressions are strings that can be adapted to various other strings. This can be compared to the so-called. wildcardów used for file operations, where the asterisk (* ‚) substitute for any number of any characters or expression *. *’ will match files with any name and any extension.