From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.help Subject: Re: How to get title of web page by url? Date: Wed, 28 Jul 2010 09:49:22 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <8762zzu0el.fsf@lifelogs.com> References: <87vd802nx4.fsf@zemblan.newkuwait.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1291853673 20336 80.91.229.12 (9 Dec 2010 00:14:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 00:14:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 01:14:29 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQU9V-0006vj-Am for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 01:14:29 +0100 Original-Received: from localhost ([127.0.0.1]:44374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQU9U-000058-IY for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 19:14:28 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!open-news-network.org!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-X-Trace: news.albasani.net uR4us57Q22xkQOkFfrVsshF+s1paKMCZs4bX/BpSuS3ohEQdetEtgKUpyMzBPp19GJg7Gld/74KIhXdeBYTEBGic7XmtMegPFnCIUQ0Um2ukWFspgi5QCiUlE3lmEdwx Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Wed, 28 Jul 2010 14:49:22 +0000 (UTC) X-User-ID: IfWsr6G1XwJ5XMuDHjkS7TNh1MTLG193zUeUH90qjlE= X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Cancel-Lock: sha1:KJT2r2wkT1q1fLgD294l04SF+ok= sha1:VtMF4zXnyLzo/hGQtgDADMP8WV4= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-NNTP-Posting-Host: 5i5U7DqHDOUbmVap7eJOGnrU/2eiHZXCC7kGEDl+Q0s= Original-Xref: usenet.stanford.edu gnu.emacs.help:180143 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76278 Archived-At: On Wed, 28 Jul 2010 16:12:52 +0200 Deniz Dogan wrote: DD> 2010/7/28 Thamer Mahmoud : >>    (re-search-forward "\\(.*\\)<[/]title>" nil t 1) DD> Why [/] and not /? DD> By the way, this will not work in scenarios where the title is spread DD> out across multiple lines: DD> <title> DD> Hello DD> DD> How would you solve this in Emacs Lisp? It will break in many other situations. For example, it doesn't check that the tag is inside the <head> tag or remove comments. It's hard to parse HTML properly. Ted