I could also add a test, to check if grep supports -P. If not, don't use it. Does a non-GNU grep use -P for other things? -- regards Thomas