Update "Character classes" part

This commit is contained in:
Audrey 2014-04-08 14:45:47 +02:00 committed by Clinton Gormley
parent 33d256119d
commit d7023fbb3f
1 changed files with 3 additions and 3 deletions

View File

@ -184,10 +184,10 @@ negates the character class. The allowed forms are:
[a-c] # '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'
[-abc] # '-' or 'a' or 'b' or 'c'
[abc\-] # '-' or 'a' or 'b' or 'c'
[^-abc] # any character except '-' or 'a' or 'b' or 'c'
[^abc\-] # any character except '-' or 'a' or 'b' or 'c'
Note that the dash `"-"` indicates a range of characeters, unless it is
the first character or if it is escaped with a backslash.