On Sat, 3 Nov 2007, Chris Edwards wrote: > On Fri, 2 Nov 2007, Mike Kenny wrote: > > | Thanks John, I had tried this. It appears that the \1 is > | not defined within the pattern. Only for substitution? > > The regex John posted is fine in SA. > > /<dw(\S+)[EMAIL PROTECTED]>/ > > Mike, what's going wrong for you ? A lint error ? Failure to > match ?
Confirmed, now that I've had a chance to test it. Here's a slightly stricter version: header XX From =~ /<dw([^\s\@>]{1,40})[EMAIL PROTECTED]>/i -- John Hardin KA7OHZ http://www.impsec.org/~jhardin/ [EMAIL PROTECTED] FALaholic #11174 pgpk -a [EMAIL PROTECTED] key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79 ----------------------------------------------------------------------- "Bother," said Pooh as he struggled with /etc/sendmail.cf, "it never does quite what I want. I wish Christopher Robin was here." -- Peter da Silva in a.s.r ----------------------------------------------------------------------- Tomorrow: Daylight Saving Time ends in U.S. - Fall Back