FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

LinkBack Thread Tools
Old 12-26-2007, 09:13 PM
"Michael R. Head"
Default Match for titles using regexp

On Thu, 2007-12-27 at 00:58 +0300, OOzy Pal wrote:
> more words/chars[<a href="#c_1" id="ids_1" title="Hello">2</a>]more words/chars
> How can I match for the title. In this case the word Hello using regexp?

How about something like:

perl -ne 's/.*title="([^"]*)".*/1/g;print'

> --
> OOzy
> Ubuntu-Gutsy (7.10)
Michael R. Head <burner@suppressingfire.org>
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Thread Tools

All times are GMT. The time now is 06:46 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org