FileUrls


Discussed at http://pmichaud.com/pipermail/pmwiki-users/2005-November/019920.html.

file:\\machine_name\dir\file.doc

⚠ file:\\machine_name\dir\file.doc

Code:

Markup('file:\\\\', '<urllink',
  "/file:\\\\\\\\([^\\s<>\"{}|^`()[\\]']+)/e",
  "str_replace('\\\\\', '/', PSS('file:////$1'))");
 0: 00.00 00.00 config start
 1: 00.01 00.01 config end
 2: 00.22 00.21 MarkupToHTML begin
 3: 00.22 00.21 MarkupToHTML begin
 4: 00.22 00.22 MarkupToHTML end
 5: 00.23 00.22 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
 6: 00.24 00.23 ReadApprovedUrls SiteAdmin.ApprovedUrls end
 7: 00.24 00.23 MarkupToHTML end
 8: 00.25 00.24 MarkupToHTML begin
 9: 00.26 00.25 MarkupToHTML end
10: 00.26 00.25 MarkupToHTML begin
11: 00.27 00.25 MarkupToHTML end
12: 00.27 00.25 now
Peak memory: 3,714,104 bytes