Regular expressions
If you have not used regular expressions before, you may not be familiar with this term or concept. However, they are not as novel as you might think.
Recall how you found the file on your hard disk. Are you sure you will use it? and * characters to help find the file you are looking for. The character matches a single character in the file name, while the * matches one or more characters. One like ' data?. DAT ' mode can be found in the following files:
Data1.dat
Data2.dat
Datax.dat
DataN.dat
If you use the * character instead? Character, the number of files found will be enlarged. ' Data*.dat ' can match all of the following file names:
Data.dat
Data1.dat
Data2.dat
Data12.dat
Datax.dat
DataXYZ.dat
Although this method of searching for files is certainly useful, it is very limited. and * The limited ability of wildcards allows you to have a concept of what regular expressions can do, but regular expressions are more powerful and flexible.