hi there
i want to have user-contributed links in the form www.mylink.com be
automatically converted into working links.
i'm wondering if this is the most efficient way to handle this:
Markup('www', 'inline',
'/([\s\n]+)\b(www\.[^\s]*)\b/ei',
'WWWLink_func("$1","$2")'
);
function WWWLink_func($spaceBefore, $wwwLink) {
return $spaceBefore."[[(http://)$wwwLink]]";
}
thanks,
adam
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users