History log of /openbsd-src/lib/libc/regex/regex.3 (Results 1 – 25 of 30)
Revision Date Author Comments
# d32639f6 11-Sep-2022 jmc <jmc@openbsd.org>

.Li -> .Vt where appropriate;
from josiah frentsos, tweaked by schwarze

ok schwarze


# 878b8cfa 06-Aug-2022 schwarze <schwarze@openbsd.org>

Improve HISTORY and add AUTHORS.
In particular, mention the 4.0BSD and v8/Tahoe APIs that were
supported until OpenBSD 5.4 and that matter for the evolution
of RE functions in the BSD libc.

Joint wo

Improve HISTORY and add AUTHORS.
In particular, mention the 4.0BSD and v8/Tahoe APIs that were
supported until OpenBSD 5.4 and that matter for the evolution
of RE functions in the BSD libc.

Joint work with and OK jsg@.

Regarding authorship of the v8 functions, Russ Cox writes
near the end of https://swtch.com/~rsc/regexp/regexp1.html :
"While writing the text editor sam in the early 1980s, Rob Pike
wrote a new regular expression implementation, which Dave Presotto
extracted into a library that appeared in the Eighth Edition.
Pike's implementation incorporated submatch tracking into an efficient
NFA simulation but, like the rest of the Eighth Edition source, was
not widely distributed. Pike himself did not realize that his
technique was anything new.
Henry Spencer reimplemented the Eighth Edition library interface
from scratch, but using backtracking, and released his implementation
into the public domain. It became very widely used, eventually
serving as the basis for the slow regular expression implementations
mentioned earlier: Perl, PCRE, Python, and so on. (In his defense,
Spencer knew the routines could be slow, and he didn't know that a
more efficient algorithm existed. He even warned in the documentation,
"Many users have found the speed perfectly adequate, although
replacing the insides of egrep with this code would be a mistake.")
Pike's regular expression implementation, extended to support
Unicode, was made freely available with sam in late 1992, but the
particularly efficient regular expression search algorithm went
unnoticed." [...]

show more ...


# 1e49e6c5 06-Aug-2022 schwarze <schwarze@openbsd.org>

Delete the ridiculous first three sentences of BUGS
and fix some minor markup nits:
get rid of useless .Tn macros and add one missing .Fn macro.
No objection from jsg@.


# e315dedf 26-May-2016 martijn <martijn@openbsd.org>

Change the way regexec handles REG_STARTEND combined with REG_NOTBOL.
The new code sees this combination as a continuation of string at offset
pmatch[0].rm_so, instead of a new string which starts at

Change the way regexec handles REG_STARTEND combined with REG_NOTBOL.
The new code sees this combination as a continuation of string at offset
pmatch[0].rm_so, instead of a new string which starts at that offset.
This change fixes a search quirk in vi and is needed for upcoming fixes in
ed/sed/vi.

This new behaviour is also used in gnu regex.

Lots of help from schwarze@
Manpage bits by schwarze@
OK schwarze@ and millert@

show more ...


# d04ba2cc 10-Nov-2015 jmc <jmc@openbsd.org>

update NAME section to include all documented functions,
or otherwise change Dt to reflect the name of an existing function;

feedback/ok schwarze


# 13d73fe3 22-Jan-2014 guenther <guenther@openbsd.org>

Use consistent phrasing for bitmask flags.

tweaking and ok millert@ jmc@


# 369bef3a 21-Jan-2014 schwarze <schwarze@openbsd.org>

obvious .Pa fixes; found with mandocdb(8)


# 23fbb714 17-Jul-2013 schwarze <schwarze@openbsd.org>

more library history
facts checked by sobrado@
style tweaks and ok jmc@


# 64d4e987 05-Jun-2013 tedu <tedu@openbsd.org>

Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze


# 9490d37c 31-May-2007 jmc <jmc@openbsd.org>

convert to new .Dd format;


# 1e5ede29 25-Feb-2005 cloder <cloder@openbsd.org>

Be correct in our man pages when talking about NUL termination (that is,
termination with '\0') vs. null termination.
Input from krw@, jaredy@, jmc@. OK deraadt@


# c1899ebb 10-Feb-2004 jmc <jmc@openbsd.org>

improve Nd; from millert@


# 6580fee3 02-Jun-2003 millert <millert@openbsd.org>

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# 628fcf47 30-May-2003 jmc <jmc@openbsd.org>

section reorder;


# d1ce6025 16-Oct-2002 wcobb <wcobb@openbsd.org>

- don't use the function enclosure macros.
- replace `POSIX 1003.2' instances with St -p1003.2.
ok mpech@, millert@


# ecb90728 09-Aug-2000 aaron <aaron@openbsd.org>

More of the same.


# f885a527 15-Apr-2000 aaron <aaron@openbsd.org>

Mostly punctuation fixes.


# 42671979 14-Mar-2000 aaron <aaron@openbsd.org>

Suffix "i.e." and "e.g." with a comma. Just another really picky man page
commit, as we want our documentation to be as consistently formatted as
possible (it's getting there :-)).


# d301afaf 06-Mar-2000 aaron <aaron@openbsd.org>

Do not leave `(' characters dangling at the end of lines; instead, use the
appropriate mdoc macros to handle these cases.


# 5c3dced3 09-Jul-1999 aaron <aaron@openbsd.org>

- remove all trailing whitespace
* except when it is escaped with a `\' at the end of the line
- fix remaining .Nm usage as well
- this is from a patch I received from kwesterback@home.com, who

- remove all trailing whitespace
* except when it is escaped with a `\' at the end of the line
- fix remaining .Nm usage as well
- this is from a patch I received from kwesterback@home.com, who has been
working on some scripts for fixing formatting errors in mdoc'd man pages

Ok, so there could be a cost/benefit debate with this commit, but since I have
the patch we might as well commit it...

show more ...


# de517754 04-Jul-1999 aaron <aaron@openbsd.org>

trash some old leftover macros and replace them with -mdoc macros


# 02cdb9c2 05-Jun-1999 aaron <aaron@openbsd.org>

use .Tn instead of .Em for logical/bitwise OR + AND


# fc8533a3 23-May-1999 aaron <aaron@openbsd.org>

remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com


# 892a7bb8 12-May-1999 aaron <aaron@openbsd.org>

grammar police: do not hyphenate compound words that act as adjectives if the
first word ends in -ly

i.e., fully-qualified, newly-created, globally-visible, etc. are wrong


# 960f8fbd 27-Feb-1999 deraadt <deraadt@openbsd.org>

make function names the correct case


12