On Fri, 27 Sep 2013, Kevin A. McGrail wrote:

or should I be using this:

header __KAM_CREDIT8 Subject =~ /Your (\xd0\xa1|C)ompl(\d1\d96|i)mentary/i

I had the best results using this format:

 header __KAM_CREDIT8 Subject =~ /Your 
(?:[\xd0][\xa1]|C)ompl(?:[\xd1][\x96]|i)mentary/i

I found that without making each of the individual bytes a separate character class, I'd get unpredictable UTF-8 warnings during lint.

--
 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
-----------------------------------------------------------------------
 484 days since the first successful private support mission to ISS (SpaceX)

Reply via email to