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.04 00.01 config end
 2: 00.99 00.20 MarkupToHTML begin
 3: 00.99 00.20 MarkupToHTML begin
 4: 01.01 00.21 MarkupToHTML end
 5: 01.02 00.21 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
 6: 01.12 00.21 ReadApprovedUrls SiteAdmin.ApprovedUrls end
 7: 01.13 00.22 MarkupToHTML end
 8: 01.13 00.22 MarkupToHTML begin
 9: 01.21 00.23 MarkupToHTML end
10: 01.21 00.23 MarkupToHTML begin
11: 01.22 00.24 MarkupToHTML end
12: 01.22 00.24 now
Peak memory: 3,738,304 bytes