[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New previous/next link estimation functions
- From: David Hansen <david.hansen@xxxxxxx>
- Date: Fri, 11 Aug 2006 03:31:50 +0200
- X-ml-name: emacs-w3m
- X-mail-count: 08803
- References: <87r6zo2mer.fsf@robotron.kosmorama>
Sorry about the noise...
On Fri, 11 Aug 2006 01:36:44 +0200 David Hansen wrote:
> - ,(concat "<a href=" w3m-html-string-regexp
> - "><img src=\\(?:/intl/[^/]+/\\)?nav_next\\.gif")
> - ,(concat "<a href=" w3m-html-string-regexp
> - "><img src=\\(?:/intl/[^/]+/\\)?nav_previous\\.gif")
> + ,(concat "<a[^>]+?href=" w3m-html-string-regexp
> + "><img src=\"?\\(?:/\\(?:intl\\|groups\\)/[^/]+/\\)?nav_next\\.gif")
> + ,(concat "<a[^>]+?href=" w3m-html-string-regexp
> + "><img src=\"\\(?:/\\(?:intl\\|groups\\)/[^/]+/\\)?nav_previous\\.gif")
Add a '?' here: ^
Or maybe even relax the regexp. I guess "nav_\(previous\|next\)"
aren't that common names for images not used for linking to
the next or previous page:
,(concat "<a[^>]+?href=" w3m-html-string-regexp
"><img src=[^>]*nav_next\\.gif")
,(concat "<a[^>]+?href=" w3m-html-string-regexp
"><img src=[^>]*nav_previous\\.gif")
This works at least on \(www\|groups\)\.google\.com.
David