Dots are valid path/dir elements in HTTP Notes: Fri Mar 31 09:10:34 EST 2006 rsc Thanks. You don't need to escape . inside [] . Reference: /n/sources/patch/applied/plumb-http-path-allow-dots Date: Fri Mar 31 11:46:21 CES 2006 Signed-off-by: uriel@cat-v.org Reviewed-by: rsc --- /sys/lib/plumb/basic Fri Mar 31 11:43:46 2006 +++ /sys/lib/plumb/basic Fri Mar 31 11:43:40 2006 @@ -9,7 +9,7 @@ # cheap http/gif,jpeg,ps,pdf renderer 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|png|PNG)' +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|png|PNG)' plumb start rc -c 'hget '$0' | page -w' # rtf files go to wdoc2txt