Match for titles using regexp

Michael R. Head burner at suppressingfire.org
Wed Dec 26 22:13:49 UTC 2007


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 at suppressingfire.org>
http://picasaweb.google.com/demiri.head.wedding
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3259 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071226/be33521e/attachment.bin>


More information about the ubuntu-users mailing list