Add two example regexps: (1) one for matching all the characters
that belong in a character class, and (2) one for matching all the characters *not* in a character class. Submitted by: Mark B, mkbucc at gmail.com MFC after: 3 days
This commit is contained in:
parent
35fa2f1bcd
commit
0efdfdee5f
@ -288,6 +288,14 @@ These stand for the character classes defined in
|
|||||||
A locale may provide others.
|
A locale may provide others.
|
||||||
A character class may not be used as an endpoint of a range.
|
A character class may not be used as an endpoint of a range.
|
||||||
.Pp
|
.Pp
|
||||||
|
A bracketed expression like
|
||||||
|
.Ql [[:class:]]
|
||||||
|
can be used to match a single character that belongs to a character
|
||||||
|
class.
|
||||||
|
The reverse, matching any character that does not belong to a specific
|
||||||
|
class, the negation operator of bracket expressions may be used:
|
||||||
|
.Ql [^[:class:]] .
|
||||||
|
.Pp
|
||||||
There are two special cases\(dd of bracket expressions:
|
There are two special cases\(dd of bracket expressions:
|
||||||
the bracket expressions
|
the bracket expressions
|
||||||
.Ql [[:<:]]
|
.Ql [[:<:]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user