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.21 00.21 MarkupToHTML begin
 3: 00.21 00.21 MarkupToHTML begin
 4: 00.22 00.21 MarkupToHTML end
 5: 00.22 00.22 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
 6: 00.23 00.22 ReadApprovedUrls SiteAdmin.ApprovedUrls end
 7: 00.23 00.22 MarkupToHTML end
 8: 00.23 00.23 MarkupToHTML begin
 9: 00.25 00.24 MarkupToHTML end
10: 00.25 00.24 MarkupToHTML begin
11: 00.25 00.24 MarkupToHTML end
12: 00.25 00.24 now
Peak memory: 3,688,808 bytes