For example, what is the difference between [\s] and \s?
[\s]
\s
[ab] means or , one of a or b, representing a character set
[ab]
or
character set
ab means and , a and b appear at the same time, and ab is continuous.
ab
and
appear at the same time, and ab is
.
Do you have to ask this kind of question? Do you understand that Baidu can take 5 minutes?
There is no difference between
[s] and s. They both represent space characters
[abc] As long as one of abc appearsabc must be three consecutive abcs
[ab]
meansor
, one of aor
b, representing acharacter set
ab
meansand
, aand
bappear at the same time, and ab is
continuous.
Do you have to ask this kind of question? Do you understand that Baidu can take 5 minutes?
There is no difference between
[s] and s. They both represent space characters
[abc] As long as one of abc appears
abc must be three consecutive abcs