[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help with regular expression formation
From: |
Bob Proulx |
Subject: |
Re: help with regular expression formation |
Date: |
Tue, 1 Apr 2008 12:00:44 -0600 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Mickey Ferguson wrote:
> I'm using GNU grep 2.5.1 compiled to run on Windows - OS is XP SP2.
> I would expect that this grep is PCRE compatible.
I just looked it up and grep requires the -P, --perl-regexp option to
enable PCRE pattterns. Generally I would avoid them since it is a
non-portable feature. Okay for quick and dirty hacks though.
> I do not have sed, nor do I know the syntax if I were to obtain a
> version.
You should get it. It is very useful.
> The main thing, though, is that you've pointed out the problem -
> that the output of the first grep has the filename. Silly me! I
> forgot about that. I'm sure I can work it from there, given that
> and the additional good info you've provided. (I'm not working
> today and just browsing email, so I can't dig into the details of
> the REs you sent. I'll study the details later.)
Good luck!
Bob