Regular expressions and Solaris 8

Roy S. Rapoport rsr at inorganic.org
Wed Jul 21 17:06:54 PDT 2004


On Wed, Jul 21, 2004 at 03:37:49PM -0700, David Wolfskill wrote:
> 	`(\<|([=%]2[ef]))2LD(=2E|\.)TLD\>`ie
> 
> though that's not really foolproof.)
> 
> 
> However, when I tried the same egrep test on the BayLISA machine, it
> failed to find the lines in question -- so I thought that maybe Solaris
> 8 didn't have supportfor \< and \> in its regex library.
> 
> But the regexp)5) man page seems to indicate that the construct is
> recognized.
> 
> Anyone have any clue whether this ought to work or not?  (Note that the
> application is a "milter," not egrep (per se).

egrep may or may not implement regexp.  Example:

On my Solaris 9 box:
cat foo | /usr/bin/egrep -e '(\<|([=%]2[ef]))okjewel(=2E|\.)net\>'

Doesn't work but
cat foo | egrep -e '(\<|([=%]2[ef]))okjewel(=2E|\.)net\>'

does.  Difference? 'egrep' is /usr/local/bin/egrep which is the GNU
version.

-roy



More information about the Baylisa mailing list