[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: procmail regex test utility
@ 1/8, # aurelio marinho jargas:
> @ 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"
yep. it's procmail regex engine failure/feature.
the backslash is there.
[~/txt2regex/test-suite] cat /tmp/procmail-re-test.zprH3g
VERBOSE=y
LOGFILE=/tmp
DEFAULT=/dev/null
:0
* \(41\)sd
/dev/null
--
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/