1patsubst(`string with a + to replace with a minus', `+', `minus') 2patsubst(`string with aaaaa to replace with a b', `a+', `b') 3patsubst(`+string with a starting + to replace with a minus', `^+', `minus') 4