tplumb all urls, not just images (TheWhiteTiger) - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 41deef57ef8abbb64265cba6445f6bff5c99b455
 (DIR) parent fbc629a995a01ba357cdacc355a7f3eba41777fb
 (HTM) Author: rsc <devnull@localhost>
       Date:   Tue,  3 Apr 2007 12:49:27 +0000
       
       plumb all urls, not just images (TheWhiteTiger)
       
       Diffstat:
         M plumb/basic                         |      12 +-----------
       
       1 file changed, 1 insertion(+), 11 deletions(-)
       ---
 (DIR) diff --git a/plumb/basic b/plumb/basic
       t@@ -17,20 +17,10 @@ plumb start web $data
        
        # urls go to web browser
        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_?,%#~&/\-+=]+)*\.(jpe?g|JPE?G|gif|GIF|ps|PS|pdf|PDF)'
       +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_?,%#~&/\-+=]+)*'
        plumb to web
        plumb start web $0
        
       -# html goes to web browser
       -# uncomment if you want this behavior
       -# commented out is more like plan 9
       -# 
       -# type is text
       -# data matches '[a-zA-Z¡-￿0-9_\-./]+'
       -# data matches '([a-zA-Z¡-￿0-9_\-./]+)\.(html|htm|HTM|HTML)'
       -# arg isfile        $0
       -# plumb start web $file
       -
        # doc and rtf files go to wdoc2txt
        type is text
        data matches '[a-zA-Z¡-￿0-9_\-./]+'