Wildcards are used for pattern matching.
Thanks to them we can use for example one month for multiple files.
This can be best described by some examples so just keep watching.
And we will see it in action Vout guts can be used by many comments as C.P and us move.
And also for string comparison in beshe.
But how world Garretts looks like those are most common wildcards from the beginning.
It is nearly impossible to remember what the wild card symbols means but you really used to it very
quickly by practicing.
So now let's go quickly through each symbol question mark represents single character.
So if you write hell question mark it can match help.
Hell or hell one for example next symbol is an asterisk which represents any number of characters.
It means even zero characters so C-8 asterisk can match car C.A. carpeted carpenter.
Then we have square brackets which represent single character from Orange Fire 0 dash to Menchie's files
0 5 7 and 5 2.
If we don't do the Desch symbol between characters in square brackets then the batter imageries single
character from possible options for example a DD in square brackets followed by it all matches hello
or D.O..
So here we are choosing only one symbol from symbol specified in square brackets.
Next symbol is currently Breguet which is used for comma separate terms.
We can for example inside curly brackets specify two wild cards separated by a comma asterisk dot text
and that is don't believe.
And as a result we got all files which ends with a txt extension and biddie of extension.
Now it may be hard to understand but when you try it you will find it quite easy.
The last symbol is exclamation mark inside square brackets which means show any character are not listed
in square brackets.
So file exclamation mark Guam will match file two files three but not file one.
We can also use some useful character classes.
The most common are upper which means any uppercase character.
Then we have a flower which means any lower case character.
If we want to match any alphabetic character we use our fire for numbers.
We are using digits plus a whole class basically means Alpha plus digit class together and space class
means any whitespace character space stop or a new line.
So now we have covered a lot and you may be a little overwhelmed by it but you will see that once you
start practicing it it is quite easy.
Now let's check how to use the wildcards in string comparison for string comparison with the wildcard.
We need to use double square brackets double equal sign is not necessary but recommended.
I am personally using it because it tells me that I am not doing a basic string comparison by using
a comparison with wildcards and here is example of how such a string comparison to wild cards can look
in action.
We have covered a lot.
So now let's break it on some examples.