Deleted Added
full compact
regex.3 (108037) regex.3 (108087)
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 108037 2002-12-18 12:45:11Z ru $
37.\" $FreeBSD: head/lib/libc/regex/regex.3 108087 2002-12-19 09:40:28Z 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 ,

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

105.Fa pattern
106string,
107subject to the flags in
108.Fa cflags ,
109and places the results in the
110.Ft regex_t
111structure pointed to by
112.Fa preg .
38.\"
39.Dd October 2, 2002
40.Dt REGEX 3
41.Os
42.Sh NAME
43.Nm regcomp ,
44.Nm regexec ,
45.Nm regerror ,

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

105.Fa pattern
106string,
107subject to the flags in
108.Fa cflags ,
109and places the results in the
110.Ft regex_t
111structure pointed to by
112.Fa preg .
113.Fa Cflags
113The
114.Fa cflags
115argument
114is the bitwise OR of zero or more of the following flags:
115.Bl -tag -width REG_EXTENDED
116.It Dv REG_EXTENDED
117Compile modern
118.Pq Dq extended
119REs,
120rather than the obsolete
121.Pq Dq basic

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

664The back-reference code is subtle and doubts linger about its correctness
665in complex cases.
666.Pp
667The
668.Fn regexec
669function
670performance is poor.
671This will improve with later releases.
116is the bitwise OR of zero or more of the following flags:
117.Bl -tag -width REG_EXTENDED
118.It Dv REG_EXTENDED
119Compile modern
120.Pq Dq extended
121REs,
122rather than the obsolete
123.Pq Dq basic

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

666The back-reference code is subtle and doubts linger about its correctness
667in complex cases.
668.Pp
669The
670.Fn regexec
671function
672performance is poor.
673This will improve with later releases.
672.Fa Nmatch
674The
675.Fa nmatch
676argument
673exceeding 0 is expensive;
674.Fa nmatch
675exceeding 1 is worse.
676The
677.Fn regexec
678function
679is largely insensitive to RE complexity
680.Em except

--- 43 unchanged lines hidden ---
677exceeding 0 is expensive;
678.Fa nmatch
679exceeding 1 is worse.
680The
681.Fn regexec
682function
683is largely insensitive to RE complexity
684.Em except

--- 43 unchanged lines hidden ---