From owner-freebsd-questions@FreeBSD.ORG Tue Aug 26 01:05:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC18C1065684 for ; Tue, 26 Aug 2008 01:05:25 +0000 (UTC) (envelope-from pprocacci@datapipe.com) Received: from fmailhost06.isp.att.net (fmailhost06.isp.att.net [204.127.217.106]) by mx1.freebsd.org (Postfix) with ESMTP id CA2168FC19 for ; Tue, 26 Aug 2008 01:05:25 +0000 (UTC) (envelope-from pprocacci@datapipe.com) Received: from [10.5.21.122] (adsl-241-169-57.bna.bellsouth.net[74.241.169.57]) by isp.att.net (frfwmhc06) with ESMTP id <20080826010525H0600a0un7e>; Tue, 26 Aug 2008 01:05:25 +0000 X-Originating-IP: [74.241.169.57] Message-ID: <48B356BE.3080501@datapipe.com> Date: Mon, 25 Aug 2008 20:05:02 -0500 From: "Paul A. Procacci" User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: siran References: <41baaeae-0c1d-4a73-9540-8049b837261c@l64g2000hse.googlegroups.com> In-Reply-To: <41baaeae-0c1d-4a73-9540-8049b837261c@l64g2000hse.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: sed html tags X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2008 01:05:26 -0000 siran wrote: > Hi, I have the string > > 111 2222 3333 > > And i wish to use sed to strip *only* the "" tag and its > contents... is this possible ? I'm trying this expression, but it > doesn't work... > > sed 's/\)]+<\/span>//g' file > > is there anything like it ? > > I would like to obtain > > 2222 > > > > I hope someone can help, > > thank you, > > siran > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > sed -E 's/<\/?span[^>]*>//g' Myabe that's what you want?