Update "Character classes" part
This commit is contained in:
parent
33d256119d
commit
d7023fbb3f
|
@ -184,10 +184,10 @@ negates the character class. The allowed forms are:
|
||||||
[a-c] # 'a' or 'b' or 'c'
|
[a-c] # 'a' or 'b' or 'c'
|
||||||
[-abc] # '-' or 'a' or 'b' or 'c'
|
[-abc] # '-' or 'a' or 'b' or 'c'
|
||||||
[abc\-] # '-' or 'a' or 'b' or 'c'
|
[abc\-] # '-' or 'a' or 'b' or 'c'
|
||||||
|
[^abc] # any character except 'a' or 'b' or 'c'
|
||||||
[^a-c] # any character except 'a' or 'b' or 'c'
|
[^a-c] # any character except 'a' or 'b' or 'c'
|
||||||
[^a-c] # any character except 'a' or 'b' or 'c'
|
[^-abc] # any character except '-' or 'a' or 'b' or 'c'
|
||||||
[-abc] # '-' or 'a' or 'b' or 'c'
|
[^abc\-] # any character except '-' or 'a' or 'b' or 'c'
|
||||||
[abc\-] # '-' or 'a' or 'b' or 'c'
|
|
||||||
|
|
||||||
Note that the dash `"-"` indicates a range of characeters, unless it is
|
Note that the dash `"-"` indicates a range of characeters, unless it is
|
||||||
the first character or if it is escaped with a backslash.
|
the first character or if it is escaped with a backslash.
|
||||||
|
|
Loading…
Reference in New Issue