9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: rog@vitanuova.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] How about some software?
Date: Mon, 17 Jun 2002 19:17:25 +0100	[thread overview]
Message-ID: <20020617181208.9EA0C19A6C@mail.cse.psu.edu> (raw)

rob writes:
> type is text
> data matches '(https?|ftp|file|gopher|mailto|news|nntp|telnet|wais|prospero)://[a-zA-Z0-9_@\-]+([.:][a-zA-Z0-9_@\-]+)*/?[a-zA-Z0-9_?,%#~&/\-+=]+([:.][a-zA-Z0-9_?,%#~&/\-+=]+)*'

i've been using a similar rule for a while now; my rule looks like:

achar='[a-zA-Z0-9_+@]'
qchar='[a-zA-Z0-9_?,%!#~&.=@+/\-;]'
type is text
data matches '(https?|ftp|file|gopher|mailto|news|nntp|telnet|wais|prospero)://'$achar'+([.:]'$achar'+)*/?'$qchar'+([:.]'$qchar'+)*'

which covers some cases the former doesn't (and probably doesn't cover
some it does). i'll leave merging the two as an exercise for the reader.
it's been a looong day.



             reply	other threads:[~2002-06-17 18:17 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-17 18:17 rog [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-06-19  4:40 okamoto
2002-06-19  4:36 rob pike, esq.
2002-06-19  4:31 okamoto
2002-06-19  4:22 rob pike, esq.
2002-06-21 10:08 ` peter a. cejchan
2002-06-19  4:00 okamoto
2002-06-19  2:46 rob pike, esq.
2002-06-19  2:45 rob pike, esq.
2002-06-18 17:05 Russ Cox
2002-06-17 18:35 rog
2002-06-17 16:56 rob pike, esq.
2002-06-17 17:25 ` Micah Stetson
2002-06-17 16:51 andrey mirtchovski
2002-06-17 16:42 rob pike, esq.
2002-06-18 17:01 ` FJ Ballesteros
2002-06-17 13:40 rob pike, esq.
2002-06-17 15:58 ` Sam
2002-06-17 16:35 ` Ronald G Minnich
2002-06-17 18:53 ` Christopher Nielsen
2002-06-17  9:20 Ben

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020617181208.9EA0C19A6C@mail.cse.psu.edu \
    --to=rog@vitanuova.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).