Philip Prindeville wrote: > Matt Kettler wrote: > >> Philip Prindeville wrote: >> >> >>> Matt Kettler wrote: >>> >>> >> >> >>>> Perhaps you want something more like: >>>> >>>> header L_INCOMPETENT ALL =~ /\\r\\n\s?$/ >>>> >>>> >> Scratch my last email. $ doesn't work with ALL. >> >> I just tested 3 variants: >> >> header L_INCOMPETENT1 ALL =~ /\\r\\n/ >> >> header L_INCOMPETENT2 ALL =~ /\\r\\n\s?$/ >> >> header L_INCOMPETENT3 ALL =~ /\\r\\n\s?\n/ >> >> >> 1 and 3 work. 2 does not. >> >> > > Ok, I tried #3 and it worked, as you said... But leaving the \s? didn't. > > I'm confused. What exactly is in the pattern buffer when the match for ALL > is run? And why does taking the \s? fail? What is it matching against?
My guess is an extra literal \r or \f. \s matches "any whitespace" ie: [ \t\n\r\f]