[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: New previous/next link estimation functions



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