[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

regular expression to do exact match of "+"




I've got the the following test function:

test (foo) {
sift $foo in
        abc
                echo "matched $foo";;
        abc\+
                echo "matched $foo";;
tfis
}

"test abc" works as expected, but "test abc+" doesn't.  I can't
seem to find a way to exactly match a + in a regular expression.
Is this broken or is there some other way to quote the + character.


Rob Liebschutz (rob@rjl.com)