Return-Path: Delivered-To: apmail-spamassassin-users-archive@www.apache.org Received: (qmail 93387 invoked from network); 11 Sep 2009 19:43:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Sep 2009 19:43:50 -0000 Received: (qmail 75407 invoked by uid 500); 11 Sep 2009 19:43:46 -0000 Delivered-To: apmail-spamassassin-users-archive@spamassassin.apache.org Received: (qmail 75316 invoked by uid 500); 11 Sep 2009 19:43:46 -0000 Mailing-List: contact users-help@spamassassin.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@spamassassin.apache.org Received: (qmail 75299 invoked by uid 99); 11 Sep 2009 19:43:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Sep 2009 19:43:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jhardin@impsec.org designates 207.210.83.140 as permitted sender) Received: from [207.210.83.140] (HELO ga.impsec.org) (207.210.83.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Sep 2009 19:43:33 +0000 Received: from mercury.impsec.org (localhost [127.0.0.1]) by ga.impsec.org (8.13.7/8.13.7) with ESMTP id n8BJhAGn001495 for ; Fri, 11 Sep 2009 12:43:11 -0700 Received: from mercury.impsec.org (tunnel.ga.impsec.org [127.0.0.1]) by mercury.impsec.org (8.14.0/8.14.0) with ESMTP id n8BJhAPf025826 for ; Fri, 11 Sep 2009 12:43:10 -0700 Received: from localhost (jhardin@localhost) by mercury.impsec.org (8.14.0/8.14.0/Submit) with ESMTP id n8BJhAFJ025823 for ; Fri, 11 Sep 2009 12:43:10 -0700 X-Authentication-Warning: mercury.impsec.org: jhardin owned process doing -bs Date: Fri, 11 Sep 2009 12:43:10 -0700 (PDT) From: John Hardin To: SA Mailing list Subject: Re: URL rule creation question In-Reply-To: <55e03a0a0909111209m7cdb6694i13c779a0e98365b5@mail.gmail.com> Message-ID: References: <55e03a0a0909101528s4c22eb62p11612182d8b08fd6@mail.gmail.com> <20090911123743.GA32187@fantomas.sk> <1252675401.30481.36.camel@mcdonalddj-dc.austin-energy.net> <55e03a0a0909111209m7cdb6694i13c779a0e98365b5@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org On Fri, 11 Sep 2009, MySQL Student wrote: > I'd like to create a rule that matches a specific letter and up to 5 > spaces after it, repeated ten times. I'm thinking something like this: > > /s\ {5}o\ {5}n\ {5}i\ {5}c\ {5}\ m\ {5}e\ {5}d\ {5}i\ {5}a/i \s is the proper way to represent whitespace. {5} is exactly 5. 1-5 would be {1,5}, and 0-5 would be {,5} > I'm still learning regex's, so hopefully this isn't too far off. The > opportunities for rules are coming faster than my ability to learn. http://www.regular-expressions.info/tutorial.html -- John Hardin KA7OHZ http://www.impsec.org/~jhardin/ jhardin@impsec.org FALaholic #11174 pgpk -a jhardin@impsec.org key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79 ----------------------------------------------------------------------- If guns kill people, then... -- pencils miss spel words. -- cars make people drive drunk. -- spoons make people fat. ----------------------------------------------------------------------- Today: the 8th anniversary of 9/11