Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu User (http://www.linux-archive.org/ubuntu-user/)
-   -   Match for titles using regexp (http://www.linux-archive.org/ubuntu-user/23255-match-titles-using-regexp.html)

"Michael R. Head" 12-26-2007 09:13 PM

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>
http://picasaweb.google.com/demiri.head.wedding
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


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

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.