Gnus development mailing list
 help / color / mirror / Atom feed
* gnus-button-url-regexp
@ 2000-04-28  0:22 James H. Cloos Jr.
  0 siblings, 0 replies; only message in thread
From: James H. Cloos Jr. @ 2000-04-28  0:22 UTC (permalink / raw)


I'm unable to convince gnus-button-url-regexp to do the right thing
for a bare url containing a tilde.  Ie. www.example.com/~foobar/ fails
to buttonize; only the domain name part is buttonized.

Vague memories suggest this used to work (I upgraded from 5.8.2 when
5.8.5 was announced.)

Ahh.  And now that I've removed the doubled-\s and broken it at its
boundries, I can see why.  If there is no method, the regexp only
matches:

   [-a-zA-Z0-9_]+\.[-a-zA-Z0-9_]+\(\.[-a-zA-Z0-9_]+[-a-zA-Z0-9_/]+\)+

So.  Does anyone have any thoughts on how to extend that to catch
a slash and suitable trailing data?

Perhaps something like (appended directly to the above fragment):

   \(/\([-a-zA-Z0-9_=!?#$@~`%&*+|\/:;.,]\|\w\)*\)?

Ie, a / plus zero or more non-spaces.  All optional.  (Don't forget
to double up the \s before stuffing it in a .el.)

Thoughts?  

-JimC
-- 
James H. Cloos, Jr.  <URL:http://jhcloos.com/public_key> 1024D/ED7DAEA6 
<cloos@jhcloos.com>  E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6
        Save Trees:  Get E-Gold! <URL:http://jhcloos.com/go?e-gold>



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-04-28  0:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-28  0:22 gnus-button-url-regexp James H. Cloos Jr.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).