Re: Regex Question

2009-11-11 Thread Ralf Hildebrandt
* rahlqu...@gmail.com rahlqu...@gmail.com: As said before blocking at the MTA would be less resource intensive but I want the whole message to feed bayes. But you already KNOW you don't want that stuff :) No need to poison your bayesdb with that... As for Ralf and his lightly gruff response,

Regex Question

2009-11-10 Thread rahlquist
Ok regex is not my strong suit by any means. Trying to get a match for email addresses that start with a pipe character ( about 15% of my spam is this ). What I have so far is this; [^a-z0-9]\b[a-z0-9._%+...@[a-z0-9.-]+\.[a-z]{2,4}\b To me that looks right but its not hitting. Any other

Re: Regex Question

2009-11-10 Thread Ralf Hildebrandt
* rahlqu...@gmail.com rahlqu...@gmail.com: Ok regex is not my strong suit by any means. Trying to get a match for email addresses that start with a pipe character ( about 15% of my spam is this ). That's not needed. Why are you accepting mail to NON-EXISTING recipients at all? -- Ralf

Re: Regex Question

2009-11-10 Thread John Hardin
On Tue, 10 Nov 2009, Ralf Hildebrandt wrote: * rahlqu...@gmail.com rahlqu...@gmail.com: Ok regex is not my strong suit by any means. Trying to get a match for email addresses that start with a pipe character ( about 15% of my spam is this ). That's not needed. Why are you accepting mail to

Re: Regex Question

2009-11-10 Thread rich...@buzzhost.co.uk
On Tue, 2009-11-10 at 14:32 +0100, Ralf Hildebrandt wrote: * rahlqu...@gmail.com rahlqu...@gmail.com: Ok regex is not my strong suit by any means. Trying to get a match for email addresses that start with a pipe character ( about 15% of my spam is this ). That's not needed. Why are you

Re: Regex Question

2009-11-10 Thread Benny Pedersen
On tir 10 nov 2009 15:26:43 CET, rich...@buzzhost.co.uk wrote Please keep this in your mind in future before trotting out that tired old gas. imho Ralf have never being banned in maillist here, if you dont like his answers just unsubscribe -- xpoint

Re: Regex Question

2009-11-10 Thread Alex
imho Ralf have never being banned in maillist here, if you dont like his answers just unsubscribe Trotting out useless, pointless, tardy, curt, terse replies benefit nobody at all and makes the poster look arrogant especially when the answer is mere opinion. I sometimes welcome the terse

Re: Regex Question

2009-11-10 Thread rich...@buzzhost.co.uk
On Tue, 2009-11-10 at 16:50 +0100, Benny Pedersen wrote: On tir 10 nov 2009 15:26:43 CET, rich...@buzzhost.co.uk wrote Please keep this in your mind in future before trotting out that tired old gas. imho Ralf have never being banned in maillist here, if you dont like his answers just

Re: Regex Question

2009-11-10 Thread John Hardin
On Tue, 10 Nov 2009, rahlqu...@gmail.com wrote: On Tue, Nov 10, 2009 at 9:09 AM, John Hardin jhar...@impsec.org wrote: * rahlqu...@gmail.com rahlqu...@gmail.com: Ok regex is not my strong suit by any means. Trying to get a match for email addresses that start with a pipe character ( about

Re: Regex Question

2009-11-10 Thread John Hardin
On Tue, 10 Nov 2009, Alex wrote: imho Ralf have never being banned in maillist here, if you dont like his answers just unsubscribe Trotting out useless, pointless, tardy, curt, terse replies benefit nobody at all and makes the poster look arrogant especially when the answer is mere opinion.

Re: Regex Question

2009-11-10 Thread LuKreme
On 10-Nov-2009, at 09:27, rich...@buzzhost.co.uk wrote: On Tue, 2009-11-10 at 16:50 +0100, Benny Pedersen wrote: On tir 10 nov 2009 15:26:43 CET, rich...@buzzhost.co.uk wrote Please keep this in your mind in future before trotting out that tired old gas. imho Ralf have never being banned in

Re: Regex Question

2009-11-10 Thread rahlquist
On Tue, Nov 10, 2009 at 11:49 AM, John Hardin jhar...@impsec.org wrote: On Tue, 10 Nov 2009, rahlqu...@gmail.com wrote: On Tue, Nov 10, 2009 at 9:09 AM, John Hardin jhar...@impsec.org wrote: * rahlqu...@gmail.com rahlqu...@gmail.com: Ok regex is not my strong suit by any means. Trying

Re: Regex Question

2009-11-10 Thread Matus UHLAR - fantomas
On Tue, 2009-11-10 at 14:32 +0100, Ralf Hildebrandt wrote: * rahlqu...@gmail.com rahlqu...@gmail.com: Ok regex is not my strong suit by any means. Trying to get a match for email addresses that start with a pipe character ( about 15% of my spam is this ). That's not needed.

Re: Regex Question

2009-11-10 Thread rich...@buzzhost.co.uk
On Tue, 2009-11-10 at 11:45 -0500, Alex wrote: imho Ralf have never being banned in maillist here, if you dont like his answers just unsubscribe Trotting out useless, pointless, tardy, curt, terse replies benefit nobody at all and makes the poster look arrogant especially when the

Re: Regex Question

2009-11-10 Thread Alex
I sometimes welcome the terse replies; it illicit's clarification from the OP. ITYM elicits. Heh, yes, thanks. I don't think they're involved in some illicit sex scandal :-) In either case, the apostrophe was wrong, too. Working on getting a new toolchain compiled and working straight since

Re: Regex Question

2009-11-10 Thread John Hardin
On Tue, 10 Nov 2009, rich...@buzzhost.co.uk wrote: Rather than let this drift into a hijacked free-for-all perhaps one of the guru's of REGEX here would actually like to answer the OP's question. If you hadn't gotten distracted by your multiple nemeses you would have noticed I've done so.

Re: Regex Question

2009-11-10 Thread jdow
From: rich...@buzzhost.co.uk Sent: Tuesday, 2009/November/10 08:27 On Tue, 2009-11-10 at 16:50 +0100, Benny Pedersen wrote: On tir 10 nov 2009 15:26:43 CET, rich...@buzzhost.co.uk wrote Please keep this in your mind in future before trotting out that tired old gas. imho Ralf have never

Re: Regex Question

2009-11-10 Thread jdow
From: rich...@buzzhost.co.uk Sent: Tuesday, 2009/November/10 09:14 On Tue, 2009-11-10 at 11:45 -0500, Alex wrote: imho Ralf have never being banned in maillist here, if you dont like his answers just unsubscribe Trotting out useless, pointless, tardy, curt, terse replies benefit nobody

Re: Regex Question

2009-11-10 Thread Ralf Hildebrandt
* rich...@buzzhost.co.uk rich...@buzzhost.co.uk: On Tue, 2009-11-10 at 14:32 +0100, Ralf Hildebrandt wrote: * rahlqu...@gmail.com rahlqu...@gmail.com: Ok regex is not my strong suit by any means. Trying to get a match for email addresses that start with a pipe character ( about 15% of

Re: Regex Question

2009-11-10 Thread Ralf Hildebrandt
* Benny Pedersen m...@junc.org: On tir 10 nov 2009 15:26:43 CET, rich...@buzzhost.co.uk wrote Please keep this in your mind in future before trotting out that tired old gas. imho Ralf have never being banned in maillist here, if you dont like his answers just unsubscribe Good point, but

Re: Regex Question

2009-11-10 Thread Ralf Hildebrandt
* John Hardin jhar...@impsec.org: In that case, depending on the MTA logging, perhaps he could still disable catchall and then troll the logs to see which invalid addresses were attempted. Or block tke mail to any recipient starting with | In postfix that could be done with

RE: Regex Question

2009-11-10 Thread R-Elists
some centos people are having a pub party and the kings and queens in london it might be over already based upon time difference from usa maybe all of you could go there and drink beer and duke it out or something constructive ;- - rh

Re: Regex Question

2009-11-10 Thread John Hardin
On Tue, 10 Nov 2009, Ralf Hildebrandt wrote: On Tue, 2009-11-10 at 14:32 +0100, Ralf Hildebrandt wrote: * rahlqu...@gmail.com rahlqu...@gmail.com: Ok regex is not my strong suit by any means. Trying to get a match for email addresses that start with a pipe character ( about 15% of my spam is

Re: Regex Question

2009-11-10 Thread Ralf Hildebrandt
* Matus UHLAR - fantomas uh...@fantomas.sk: Ralf's question was in no way offensive. He is just trying to solve the problem by way that is most efficient for most of e-mail users and admins. What the OP intends to do (Who's selling away my addresses?) can be done in the MTA entirely. A

Re: Regex Question

2009-11-10 Thread Bill Landry
Ralf Hildebrandt wrote: * Benny Pedersen m...@junc.org: On tir 10 nov 2009 15:26:43 CET, rich...@buzzhost.co.uk wrote Please keep this in your mind in future before trotting out that tired old gas. imho Ralf have never being banned in maillist here, if you dont like his answers just

Re: Regex Question

2009-11-10 Thread rahlquist
On Tue, Nov 10, 2009 at 3:57 PM, John Hardin jhar...@impsec.org wrote: On Tue, 10 Nov 2009, Ralf Hildebrandt wrote: On Tue, 2009-11-10 at 14:32 +0100, Ralf Hildebrandt wrote: * rahlqu...@gmail.com rahlqu...@gmail.com: Ok regex is not my strong suit by any means. Trying to get a match for

Re: Regex Question

2009-11-10 Thread John Hardin
On Tue, 10 Nov 2009, rahlqu...@gmail.com wrote: Thanks! Your earlier Regex is in place and doing quite well. Pleased to be of service. -- John Hardin KA7OHZhttp://www.impsec.org/~jhardin/ jhar...@impsec.orgFALaholic #11174 pgpk -a jhar...@impsec.org key:

Regex Question

2007-03-03 Thread Nigel Frankcom
Hi All, I've recently invested in some books and software to help me figure out what I *thought* I already knew pretty well (regex). As was pointed out by a kind list member, there are various 'flavours' of regex. Can anyone tell me which particular flavour I'm best concentrating on for SA rules?

Re: Regex Question

2007-03-03 Thread Matthias Leisi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nigel Frankcom wrote: pointed out by a kind list member, there are various 'flavours' of regex. Can anyone tell me which particular flavour I'm best concentrating on for SA rules? man perlre - -- Matthias -BEGIN PGP SIGNATURE-

Rule Regex Question.

2007-02-26 Thread Nigel Frankcom
Hi All, Can anyone tell me if I need to escape the characters within the square braces in the following? body NF_REM_CHAR1 /remove [*%!+`£$%^()_-=#~]/i score NF_REM_CHAR1 4.0 describe NF_REM_CHAR1 remove chars for URL spams TIA Nigel

Re: Rule Regex Question.

2007-02-26 Thread John D. Hardin
On Mon, 26 Feb 2007, Nigel Frankcom wrote: Can anyone tell me if I need to escape the characters within the square braces in the following? body NF_REM_CHAR1 /remove [*%!+`£$%^()_-=#~]/i A dash indicates a range (e.g. a-z) - if you need that, it's safest to put it as the first character in

Re: Advanced regex question - backtracking vs. negative lookaheads

2006-04-26 Thread Jeremy Fairbrass
Good point, you're completely right! Thanks for pointing that out... :) Cheers, Jeremy John Rudd [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Apr 25, 2006, at 6:33 AM, Jeremy Fairbrass wrote: /style=[^]+color:blue/ span style=color:blue; font-size:small;

Re: Advanced regex question - backtracking vs. negative lookaheads

2006-04-25 Thread Jeremy Fairbrass
Thanks guys for the clarifications! My understanding of how regex worked was the same as Bowie's, ie: - My understanding is that with [^]+ the engine will scan from left to right until it finds a quote. Then, in the context of the previous regex, it will start backtracking to find a match

Re: Advanced regex question - backtracking vs. negative lookaheads

2006-04-25 Thread John Rudd
On Apr 25, 2006, at 6:33 AM, Jeremy Fairbrass wrote: /style=[^]+color:blue/ span style=color:blue; font-size:small; border:0px Just a small note, which may be mostly a digression but: I don't think the above regex will match that string at all. The regex, because it has a +

Advanced regex question - backtracking vs. negative lookaheads

2006-04-21 Thread Jeremy Fairbrass
Hi all, I wonder if one of you regex gurus might be able to give me some advice regarding the most efficiant way of writing a particular rule Let's say I want to use regex to search for the phrase color:blue within a span tag as in the example below (just a made-up example for the sake of

Re: Advanced regex question - backtracking vs. negative lookaheads

2006-04-21 Thread David Landgren
Jeremy Fairbrass wrote: [...] So one possible solution would be the following: /style=(.(?!color))+.color:blue/ Eeep! In other words, after the first (quote mark) it looks for any character NOT followed by the word color, and repeats that with the + character, until it gets to the

RE: Advanced regex question - backtracking vs. negative lookahead s

2006-04-21 Thread Bowie Bailey
Jeremy Fairbrass wrote: Let's say I want to use regex to search for the phrase color:blue within a span tag as in the example below (just a made-up example for the sake of this question): span style=border:0px; color:blue; font-size:small In this case, the color:blue part is preceeded