Results 1 to 2 of 2
As expected, but of these two commands work...
# cat test.msg | egrep -e "name=\"[a-z][a-z]\.zip\""
name="vo.zip"
filename="vo.zip"
# cat test.msg | egrep -e "name=\"[a-z]{1,2}\.zip\""
name="vo.zip"
filename="vo.zip"
However, in my procmail ...
- 03-24-2008 #1Banned
- Join Date
- Dec 2002
- Location
- Texas
- Posts
- 242
Regex failing in Procmail recipe
As expected, but of these two commands work...
# cat test.msg | egrep -e "name=\"[a-z][a-z]\.zip\""
name="vo.zip"
filename="vo.zip"
# cat test.msg | egrep -e "name=\"[a-z]{1,2}\.zip\""
name="vo.zip"
filename="vo.zip"
However, in my procmail recipe, only the 1st one works...
# cat test.log | grep name
procmail: Score: 0 -1 "name=\"[a-z]{1,2}\.zip\""
procmail: Score: 2 1 "name=\"[a-z][a-z]\.zip\""
Does the {x,y} function of regex's not work in procmail recipes?
- 03-24-2008 #2
No, it does not. I just examined regexp.c in the procmail source.
--
Bill
Old age and treachery will overcome youth and skill.


Reply With Quote