Date: Wed, 11 Feb 1998 01:46:29 +0100 (CET) From: Oliver Fromme <oliver.fromme@heim3.tu-clausthal.de> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: docs/5708: Small bug in re_format(7) manual page. Message-ID: <199802110046.BAA21304@dorifer.heim3.tu-clausthal.de>
next in thread | raw e-mail | index | archive | help
>Number: 5708 >Category: docs >Synopsis: Small bug in re_format(7) manual page. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 10 16:50:00 PST 1998 >Last-Modified: >Originator: Oliver Fromme >Organization: Administration Heim 3 (Technical University of Clausthal) >Release: FreeBSD 2.2-971223-SNAP i386 >Environment: `uname -a`: FreeBSD dorifer.heim3.tu-clausthal.de 2.2-971223-SNAP FreeBSD 2.2-971223-SNAP #0: Sun Feb 1 16:24:13 CET 1998 olli@dorifer.heim3.tu-clausthal.de:/usr/src/sys/compile/DORIFER i386 >Description: According to the re_format() manual page: Obsolete (``basic'') regular expressions differ in several respects. `|', `+', and `?' are ordinary characters and there is no equivalent for their functionality. This is not completely correct. `x+' is equivalent to `xx*' or `x\{1,\}', and `x?' is equivalent to `x\{0,1\}'. >How-To-Repeat: Enter "man 7 re_format". >Fix: --- re_format.7.orig Wed Feb 11 01:32:32 1998 +++ re_format.7 Wed Feb 11 01:41:15 1998 @@ -222,8 +222,12 @@ POSIX-compliant. .PP Obsolete (``basic'') regular expressions differ in several respects. -`|', `+', and `?' are ordinary characters and there is no equivalent -for their functionality. +`|' is an ordinary character and there is no equivalent +for its functionality. +`+' and `?' are ordinary characters, and their functionality +can be expressed using bounds (`\{1,\}' or `\{0,1\}', +respectively). +Also note that `x+' in modern REs is equivalent to `xx*'. The delimiters for bounds are `\e{' and `\e}', with `{' and `}' by themselves ordinary characters. The parentheses for nested subexpressions are `\e(' and `\e)', >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802110046.BAA21304>