re_comp.3 (165906) | re_comp.3 (205146) |
---|---|
1.\" Copyright (c) 1980, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 12 unchanged lines hidden (view full) --- 21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" SUCH DAMAGE. 27.\" 28.\" @(#)re_comp.3 8.1 (Berkeley) 6/4/93 | 1.\" Copyright (c) 1980, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 12 unchanged lines hidden (view full) --- 21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" SUCH DAMAGE. 27.\" 28.\" @(#)re_comp.3 8.1 (Berkeley) 6/4/93 |
29.\" $FreeBSD: head/lib/libcompat/4.3/re_comp.3 165906 2007-01-09 01:02:06Z imp $ | 29.\" $FreeBSD: head/lib/libcompat/4.3/re_comp.3 205146 2010-03-14 10:18:58Z ed $ |
30.\" 31.Dd June 4, 1993 32.Dt RE_COMP 3 33.Os 34.Sh NAME 35.Nm re_comp , 36.Nm re_exec 37.Nd regular expression handler --- 57 unchanged lines hidden (view full) --- 95The 96.Fn re_exec 97function 98returns \-1 for an internal error. 99.Pp 100The 101.Fn re_comp 102function | 30.\" 31.Dd June 4, 1993 32.Dt RE_COMP 3 33.Os 34.Sh NAME 35.Nm re_comp , 36.Nm re_exec 37.Nd regular expression handler --- 57 unchanged lines hidden (view full) --- 95The 96.Fn re_exec 97function 98returns \-1 for an internal error. 99.Pp 100The 101.Fn re_comp 102function |
103returns one of the following strings if an error occurs: 104.Bd -unfilled -offset indent 105No previous regular expression, 106Regular expression too long, 107unmatched \e(, 108missing ], 109too many \e(\e) pairs, 110unmatched \e). 111.Ed | 103returns 104.Dq no previous regular expression 105or one of the strings generated by 106.Xr regerror 3 . |
112.Sh SEE ALSO 113.Xr ed 1 , 114.Xr egrep 1 , 115.Xr ex 1 , 116.Xr fgrep 1 , 117.Xr grep 1 , 118.Xr regex 3 119.Sh HISTORY 120The 121.Fn re_comp 122and 123.Fn re_exec 124functions appeared in 125.Bx 4.0 . | 107.Sh SEE ALSO 108.Xr ed 1 , 109.Xr egrep 1 , 110.Xr ex 1 , 111.Xr fgrep 1 , 112.Xr grep 1 , 113.Xr regex 3 114.Sh HISTORY 115The 116.Fn re_comp 117and 118.Fn re_exec 119functions appeared in 120.Bx 4.0 . |