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.11 00.11 MarkupToHTML begin
 3: 00.11 00.11 MarkupToHTML begin
 4: 00.12 00.11 MarkupToHTML end
 5: 00.12 00.12 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
 6: 00.13 00.12 ReadApprovedUrls SiteAdmin.ApprovedUrls end
 7: 00.13 00.12 MarkupToHTML end
 8: 00.13 00.12 MarkupToHTML begin
 9: 00.14 00.13 MarkupToHTML end
10: 00.14 00.13 MarkupToHTML begin
11: 00.15 00.14 MarkupToHTML end
12: 00.15 00.14 now
Peak memory: 3,367,768 bytes