From owner-freebsd-questions Wed May 10 6:26:11 2000 Delivered-To: freebsd-questions@freebsd.org Received: from hq1.tyfon.net (hq1.tyfon.net [213.212.29.17]) by hub.freebsd.org (Postfix) with ESMTP id 7691437B578 for ; Wed, 10 May 2000 06:26:06 -0700 (PDT) (envelope-from dl@tyfon.net) Received: from enigmatic (dan [192.168.1.20]) by hq1.tyfon.net (Postfix) with SMTP id 3FA6A1C7B6 for ; Wed, 10 May 2000 15:26:00 +0200 (CEST) From: "Dan Larsson" To: Subject: matching all non [:lower:] Date: Wed, 10 May 2000 15:27:43 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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