Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2000 15:27:43 +0200
From:      "Dan Larsson" <dl@tyfon.net>
To:        <questions@freebsd.org>
Subject:   matching all non [:lower:]
Message-ID:  <NEBBJANJCNNAKCPFKHHFKEOFCBAA.dl@tyfon.net>

next in thread | raw e-mail | index | archive | help
How do I match all non lower characters
from a string? Evidently the caret (^) sign
doesn't work:
echo "#¤%&a/()b=?" | sed -e '/[^[:lower:]]*/s///'

(returns: a/()b=?)
(what I want it to return is: ab)

Any ideas?

Regards
------------
Dan Larsson



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NEBBJANJCNNAKCPFKHHFKEOFCBAA.dl>