Re: How to do a regexp

2001-02-25 Thread Josh Huber
On Sat, Feb 24, 2001 at 12:15:25PM -0500, Rich Lafferty wrote: > On Sat, Feb 24, 2001 at 08:21:28AM -0500, Josh Huber ([EMAIL PROTECTED]) wrote: > > > > * ^TO_about.com > > > > the TO_ is expanded to a nice regex which matches the proper text > > before an address. > > Everyone keeps saying thi

Re: How to do a regexp

2001-02-24 Thread Rich Lafferty
On Sat, Feb 24, 2001 at 08:21:28AM -0500, Josh Huber ([EMAIL PROTECTED]) wrote: > > * ^TO_about.com > > the TO_ is expanded to a nice regex which matches the proper text > before an address. Everyone keeps saying this, and it still doesn't work. That nice regex doesn't match the text *in* an ad

Re: How to do a regexp

2001-02-24 Thread Josh Huber
On Wed, Feb 21, 2001 at 04:21:30PM -0500, Josh Huber wrote: > The reasoning behind this is: > > > > * ^To: .*about.com.* > > ...often addresses are formatted in a way like: > > John Doe <[EMAIL PROTECTED]> > or > [EMAIL PROTECTED] (John Doe) > > but are not that often just the email address al

Re: How to do a regexp

2001-02-24 Thread Holger Wahlen
Bruce A. Petro wrote (about a procmail condition): > I understand the leading .* based on your remark, but what about the > trailing .* ?? You can safely omit it. It doesn't make any difference whatsoever with regard to matching. /HW

Re: How to do a regexp

2001-02-23 Thread Eugene Lee
On Thu, Feb 22, 2001 at 10:00:51PM -0500, Joe Philipps wrote: : On Mon, Feb 19, 2001 at 06:21:58PM -0500, Bruce A. Petro wrote: : : >Can you point me to some book or doc or man that says things in fairly : >plain english as you did??? I'm finding a lot of docs on regexps that : >are hard to tran

Re: How to do a regexp

2001-02-22 Thread Joe Philipps
On Mon, Feb 19, 2001 at 06:21:58PM -0500, Bruce A. Petro wrote: >Can you point me to some book or doc or man that says things in fairly >plain english as you did??? I'm finding a lot of docs on regexps that >are hard to translate when you are just starting out like me. "man 5 regexp" on HP-UX "m

Re: How to do a regexp

2001-02-21 Thread Bruce A. Petro
Many thanks! Can you point me to some book or doc or man that says things in fairly plain english as you did??? I'm finding a lot of docs on regexps that are hard to translate when you are just starting out like me. They don't seem to say things like: > The "." means "any character", so ".*" mea

Re: How to do a regexp

2001-02-21 Thread Josh Huber
On Mon, Feb 19, 2001 at 06:21:58PM -0500, Bruce A. Petro wrote: > Many thanks! > Can you point me to some book or doc or man that says things in fairly > plain english as you did??? I'm finding a lot of docs on regexps that > are hard to translate when you are just starting out like me. They > d

Re: How to do a regexp

2001-02-18 Thread Gary
On Sun, Feb 18, 2001 at 12:32:32AM -0600 or thereabouts, Aaron Schrab wrote: > At 19:38 -0600 17 Feb 2001, Gary <[EMAIL PROTECTED]> wrote: > > > On Sat, Feb 17, 2001 at 10:56:03AM -0600, Gary wrote: > > > > >:O: > > > >* (^(To|Cc):*@about.com*) > > > >about.com > > > can think of a few more way

Re: How to do a regexp

2001-02-17 Thread Rich Lafferty
On Sat, Feb 17, 2001 at 07:38:08PM -0600, Gary ([EMAIL PROTECTED]) wrote: > On Sat, Feb 17, 2001 at 05:05:22PM -0500 or thereabouts, Joe Philipps wrote: > > On Sat, Feb 17, 2001 at 10:56:03AM -0600, Gary wrote: > > >On Fri, Feb 16, 2001 at 11:23:57PM -0500 or thereabouts, Bruce A. Petro wrote: >

Re: How to do a regexp

2001-02-17 Thread Aaron Schrab
At 19:38 -0600 17 Feb 2001, Gary <[EMAIL PROTECTED]> wrote: > > On Sat, Feb 17, 2001 at 10:56:03AM -0600, Gary wrote: > > >:O: > > >* (^(To|Cc):*@about.com*) > > >about.com > can think of a few more ways too. The above has worked for me well over > the years. I can't see how that could possib

Re: How to do a regexp

2001-02-17 Thread Gary
On Sat, Feb 17, 2001 at 05:05:22PM -0500 or thereabouts, Joe Philipps wrote: > On Sat, Feb 17, 2001 at 10:56:03AM -0600, Gary wrote: > >On Fri, Feb 16, 2001 at 11:23:57PM -0500 or thereabouts, Bruce A. Petro wrote: > >> :0: > >> * ^[EMAIL PROTECTED] > >> about.com > >In Procmail, these are calle

Re: How to do a regexp

2001-02-17 Thread Joe Philipps
On Sat, Feb 17, 2001 at 10:56:03AM -0600, Gary wrote: >On Fri, Feb 16, 2001 at 11:23:57PM -0500 or thereabouts, Bruce A. Petro wrote: > >> Hi - I'm new at regexp's and don't know how to do this... >> >> :0: >> * ^[EMAIL PROTECTED] >> about.com > >In Procmail, these are called recipes. Try this, w

Re: How to do a regexp

2001-02-17 Thread Gary
On Fri, Feb 16, 2001 at 11:23:57PM -0500 or thereabouts, Bruce A. Petro wrote: > Hi - I'm new at regexp's and don't know how to do this... > The main question is from procmail regexp I did that is > not working. I want it to find all mail where the TO: > contains "@about.com" ("[EMAIL PROTECTED