From owner-svn-src-stable@FreeBSD.ORG Thu Jan 15 04:32:54 2009 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2BC4E106567A; Thu, 15 Jan 2009 04:32:54 +0000 (UTC) (envelope-from keramida@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 188ED8FC14; Thu, 15 Jan 2009 04:32:54 +0000 (UTC) (envelope-from keramida@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n0F4WrKL064338; Thu, 15 Jan 2009 04:32:54 GMT (envelope-from keramida@svn.freebsd.org) Received: (from keramida@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n0F4WrTJ064337; Thu, 15 Jan 2009 04:32:53 GMT (envelope-from keramida@svn.freebsd.org) Message-Id: <200901150432.n0F4WrTJ064337@svn.freebsd.org> From: Giorgos Keramidas Date: Thu, 15 Jan 2009 04:32:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-6@freebsd.org X-SVN-Group: stable-6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r187279 - in stable/6/lib/libc: . inet regex sys X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2009 04:32:55 -0000 Author: keramida (doc committer) Date: Thu Jan 15 04:32:53 2009 New Revision: 187279 URL: http://svn.freebsd.org/changeset/base/187279 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/6/lib/libc/ (props changed) stable/6/lib/libc/inet/inet_net_pton.c (props changed) stable/6/lib/libc/regex/re_format.7 stable/6/lib/libc/sys/ (props changed) Modified: stable/6/lib/libc/regex/re_format.7 ============================================================================== --- stable/6/lib/libc/regex/re_format.7 Thu Jan 15 04:31:55 2009 (r187278) +++ stable/6/lib/libc/regex/re_format.7 Thu Jan 15 04:32:53 2009 (r187279) @@ -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 [[:<:]]