December 2017
Beginner to intermediate
500 pages
12h 10m
English
In this last example, you specified the files with a wildcard, which was basically a regular expression. A regular expression is much more than specifying the known wildcards ? or *. In the following table, you have some examples of regular expressions, which you may use to specify filenames. The Example column refers to the sample files in the tutorial:
|
The following regular expression... |
matches... |
Example |
|
.* |
Any file |
Any of the sample files |
|
.+_2\.* |
Any file whose name ends with _2, no matter the extension |
ARTIST_2.MP3 and error_2.png |
|
(?i).+song.*\.mp3 |
Any mp3 file containing or ending with song, upper or lower case |
MySongs.mp3 and THEBESTSONG.MP3 |
Read now
Unlock full access