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