Re: [SLUG] need a command

From: Eben King (eben1@tampabay.rr.com)
Date: Wed Apr 07 2004 - 12:34:53 EDT


On Wed, 7 Apr 2004, Ronan Heffernan wrote:

> >You might have to throw " .-," into those regexes.
> >
> Doesn't a dot '.' match any single character?

Yup, so it does. I guess that, had I actually I done it, I would have
seen the anomalous results.

> Perhaps " \.-," (note that the dot is escaped with a backslash) or use
> the pre-defined [[:space:]] (also matches Tab and CR (but not LF)?) and
> [[:punct:]] or any of the other pre-defines from 'man -S7 regex':

If you're going to do that, you might as well do it the versatile way and
use '[[:digit:]]', as you mention.

-- 
The people don't want war, but it's always simple to drag the people along.
The people can always be brought to the bidding of the leaders.  All you
have to do is tell them they are being attacked, and denounce the pacifists
for lack of patriotism, and exposing the country. -- Hermann Goering

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:14:56 EDT