Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site denelcor.UUCP Path: utzoo!linus!philabs!seismo!hao!denelcor!lmc From: lmc@denelcor.UUCP (Lyle McElhaney) Newsgroups: net.unix Subject: regular expressions Message-ID: <227@denelcor.UUCP> Date: Fri, 2-Dec-83 18:30:36 EST Article-I.D.: denelcor.227 Posted: Fri Dec 2 18:30:36 1983 Date-Received: Sun, 4-Dec-83 06:22:21 EST Organization: Denelcor, Aurora, CO Lines: 14 In system 3 and 5, there are two sources for routines to compile and test regular expressions. The first, contained in /usr/include/regexp.h and described in regexp(7) ((5) in system 5) apparantly grew through the v6-v7-Sys3 family, while the other, embodied in the PW library and described in regcmp, regex(3X) came up via PWB-Sys3. The latter is more powerful, with a grouping operator and a + operator (and different forms of () and {}). My question is whether any Sys3 or 5 software actually uses the PWB version as opposed to the v7 version. I know that most of the common users of REs (ed, sed, grep, etc) use the v7 version. Is inclusion of the PWB version in software left as an exercise for the student (not that I mind...)? Lyle McElhaney ...(hao,nbires,brl-bmd)!denelcor!lmc