[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
silly: sed and simple regex that doesn't work
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: silly: sed and simple regex that doesn't work
- From: Aleksander Piotrowski <aleksander_(_dot_)_piotrowski_(_at_)_nic_(_dot_)_com_(_dot_)_pl>
- Date: Sun, 22 Aug 2004 19:45:09 +0200
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.