>>> On 5/17/2012 at 6:16 PM, John Hardin <jhar...@impsec.org> wrote: > On Thu, 17 May 2012, Joseph Acquisto wrote: > >> I attempted to adapt something from a similar regex provided by a vendor >> of a commercial product. It was to detect country codes we do not want >> to accept mail from. No doubt my ignorance of SA and regex in general >> will be on display for the amusement of many. >> >> rawbody URI_RU m,^https?://[^.\.][ru]/,i > > heh. Yeah, that won't work. "[]" means a character class, one character > that matches anything within the square brackets. > > What the above RE says is: > > blah blah blah // (not-period OR period) (r OR u) / > > ...so it would match, for example: > > https://.r/ > https://.u/ > > but never: > > https://{anything}.ru/ > > And you actually had success testing that from the command line? > > -- > John Hardin KA7OHZ http://www.impsec.org/~jhardin/ > jhar...@impsec.org FALaholic #11174 pgpk -a jhar...@impsec.org > key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
I believe so. It was weeks ago that I did that (then comment it out, intending to get back to it). I won't be able to focus on this for a while. I forgot we are having a social gathering tonight. Sigh. Sometimes that sort of thing has to happen. joe a.