[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

silly: sed and simple regex that doesn't work


I've got following code which doesn't work:

	echo "foo123bar" | sed -e 's/\([0-9]\+\)//'

Of course, as I'm a lamer this is obvious that above code doesn't work
(outputs "foo123bar") but... 

... it works fine (outputs "foobar") with GNU sed. I don't get it. Is there
anything special in above regex that makes it GNU sed-only?

Thanks for patience,


ps. This is -current system.