Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jan 2009 04:31:55 +0000 (UTC)
From:      Giorgos Keramidas <keramida@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r187278 - in stable/7/lib/libc: . regex string
Message-ID:  <200901150431.n0F4Vtvq064272@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: keramida (doc committer)
Date: Thu Jan 15 04:31:55 2009
New Revision: 187278
URL: http://svn.freebsd.org/changeset/base/187278

Log:
  MFC 182795 from /head
  
  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

Modified:
  stable/7/lib/libc/   (props changed)
  stable/7/lib/libc/regex/re_format.7
  stable/7/lib/libc/string/ffsll.c   (props changed)
  stable/7/lib/libc/string/flsll.c   (props changed)

Modified: stable/7/lib/libc/regex/re_format.7
==============================================================================
--- stable/7/lib/libc/regex/re_format.7	Thu Jan 15 04:29:02 2009	(r187277)
+++ stable/7/lib/libc/regex/re_format.7	Thu Jan 15 04:31:55 2009	(r187278)
@@ -288,6 +288,14 @@ These stand for the character classes de
 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 [[:<:]]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901150431.n0F4Vtvq064272>