summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/re_format.7
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/regex/re_format.7')
-rw-r--r--lib/libc/regex/re_format.78
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/regex/re_format.7 b/lib/libc/regex/re_format.7
index d4555a0..463c6a2 100644
--- a/lib/libc/regex/re_format.7
+++ b/lib/libc/regex/re_format.7
@@ -288,6 +288,14 @@ These stand for the character classes defined in
A locale may provide others.
A character class may not be used as an endpoint of a range.
.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:
the bracket expressions
.Ql [[:<:]]
OpenPOWER on IntegriCloud