diff options
| author | Steve Price <steve@FreeBSD.org> | 1998-02-14 18:26:29 +0000 |
|---|---|---|
| committer | Steve Price <steve@FreeBSD.org> | 1998-02-14 18:26:29 +0000 |
| commit | 0f4b8423e15e466102ee8614a339ce92f706984c (patch) | |
| tree | 1cf202138fc2d7b57b8c7e12ce122ad74bdb7126 /lib/libc/regex | |
| parent | a021db163920dc34bf9cd29f7041fe994520ab7f (diff) | |
Notes
Diffstat (limited to 'lib/libc/regex')
| -rw-r--r-- | lib/libc/regex/re_format.7 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/regex/re_format.7 b/lib/libc/regex/re_format.7 index db2f6349c450..d663f111ef29 100644 --- a/lib/libc/regex/re_format.7 +++ b/lib/libc/regex/re_format.7 @@ -222,8 +222,11 @@ as an implementation can refuse to accept such REs and remain 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)', |
