[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: procmail regex test utility



@ 1/8, Roberto Teixeira:

> Hmm... maybe I'm just lame but why can't a start a regexp with a backslash?
>
> maragato@gnu:/tmp > ./verde.sh "\(41\)sd" "(41)sd"
> Invalid regexp "(41\)sd"
> maragato@gnu:/tmp > ./verde.sh "a\(41\)sd" "a(41)sd"
> Match

i don't know &:)

it can be bash escaping plague or procmail things...

with single quotes and space before it fails too...

$ ./zzp ' \(41\)sd' "(41)sd"
Invalid regexp "(41\)sd"




-- 
s·:(·>(·×^a]×http://www.verde666.org×^[:wq

-
Spamfilter:    spam magnet and regexp collector / blocker
Archive:       http://mail.nl.linux.org/spamfilter/
Website:       http://spamfilter.nl.linux.org/