Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!ames!amdcad!sun!imagen!auspyr!altnet!altos86!nate From: nate@altos86.UUCP (Nathaniel Ingersoll) Newsgroups: comp.unix.wizards Subject: Re: BSD re_comp() and re_exec() problem Message-ID: <389@altos86.UUCP> Date: Wed, 26-Aug-87 21:37:29 EDT Article-I.D.: altos86.389 Posted: Wed Aug 26 21:37:29 1987 Date-Received: Sun, 30-Aug-87 06:49:08 EDT References: <1358@osiris.UUCP> Reply-To: nate@altos86.UUCP (Nathaniel Ingersoll) Organization: Altos Computer Systems, San Jose, CA Lines: 8 Keywords: is it stupid || am I? Summary: Regexps differ from Ex to Csh The * is in Ex and friends is different from that in Csh. xxxx* in csh will match any pattern starting with four x's, while in Ex it will match a string of at least 3 x's - xxx and then (x*) == zero or more x's. So for re_comp you need xxxx.* which is 4 x's, and zero or more .'s and . being a wild match which will match any single character.