Deleted Added
full compact
regex.3 (119893) regex.3 (131504)
1.\" Copyright (c) 1992, 1993, 1994 Henry Spencer.
2.\" Copyright (c) 1992, 1993, 1994
3.\" The Regents of the University of California. All rights reserved.
4.\"
5.\" This code is derived from software contributed to Berkeley by
6.\" Henry Spencer.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 20 unchanged lines hidden (view full) ---

29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE.
35.\"
36.\" @(#)regex.3 8.4 (Berkeley) 3/20/94
1.\" Copyright (c) 1992, 1993, 1994 Henry Spencer.
2.\" Copyright (c) 1992, 1993, 1994
3.\" The Regents of the University of California. All rights reserved.
4.\"
5.\" This code is derived from software contributed to Berkeley by
6.\" Henry Spencer.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 20 unchanged lines hidden (view full) ---

29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE.
35.\"
36.\" @(#)regex.3 8.4 (Berkeley) 3/20/94
37.\" $FreeBSD: head/lib/libc/regex/regex.3 119893 2003-09-08 19:57:22Z ru $
37.\" $FreeBSD: head/lib/libc/regex/regex.3 131504 2004-07-02 23:52:20Z ru $
38.\"
39.Dd October 2, 2002
40.Dt REGEX 3
41.Os
42.Sh NAME
43.Nm regcomp ,
44.Nm regexec ,
45.Nm regerror ,

--- 513 unchanged lines hidden (view full) ---

559or follow
560.Ql ^\&
561or
562.Ql |\& .
563.Pp
564.Ql |\&
565cannot appear first or last in a (sub)expression or after another
566.Ql |\& ,
38.\"
39.Dd October 2, 2002
40.Dt REGEX 3
41.Os
42.Sh NAME
43.Nm regcomp ,
44.Nm regexec ,
45.Nm regerror ,

--- 513 unchanged lines hidden (view full) ---

559or follow
560.Ql ^\&
561or
562.Ql |\& .
563.Pp
564.Ql |\&
565cannot appear first or last in a (sub)expression or after another
566.Ql |\& ,
567i.e. an operand of
567i.e., an operand of
568.Ql |\&
569cannot be an empty subexpression.
570An empty parenthesized subexpression,
571.Ql "()" ,
572is legal and matches an
573empty (sub)string.
574An empty string is not a legal RE.
575.Pp

--- 70 unchanged lines hidden (view full) ---

646or
647.Ql +\&
648operand invalid
649.It Dv REG_EMPTY
650empty (sub)expression
651.It Dv REG_ASSERT
652can't happen - you found a bug
653.It Dv REG_INVARG
568.Ql |\&
569cannot be an empty subexpression.
570An empty parenthesized subexpression,
571.Ql "()" ,
572is legal and matches an
573empty (sub)string.
574An empty string is not a legal RE.
575.Pp

--- 70 unchanged lines hidden (view full) ---

646or
647.Ql +\&
648operand invalid
649.It Dv REG_EMPTY
650empty (sub)expression
651.It Dv REG_ASSERT
652can't happen - you found a bug
653.It Dv REG_INVARG
654invalid argument, e.g. negative-length string
654invalid argument, e.g.\& negative-length string
655.El
656.Sh HISTORY
657Originally written by
658.An Henry Spencer .
659Altered for inclusion in the
660.Bx 4.4
661distribution.
662.Sh BUGS

--- 65 unchanged lines hidden ---
655.El
656.Sh HISTORY
657Originally written by
658.An Henry Spencer .
659Altered for inclusion in the
660.Bx 4.4
661distribution.
662.Sh BUGS

--- 65 unchanged lines hidden ---