[pmwiki-users] Help with preg_replace/e

Vince Administration vadmin at math.uconn.edu
Tue Feb 25 14:56:04 CST 2014


Dear PmWiki Users,


In trying to convert UpdateForm to be PHP 5.5 compatible, I ran into the last line of the original recipe -- The last three lines are:

//exit code copied bodily from forms.php
  $FmtV['$UpdateFormArgs'] = implode(' ', $attr);
  $out .= FmtPageName($opt[':html'], $pagename);
  return preg_replace('/<(\\w+\\s)(.*)$/es',"'<$1'.Keep(PSS('$2'))", $out);

Now clearly this is from an old version of forms.php, but I don't really understand  the expression to be evaluated.  Can you help?

Thanks,
 
   Vince



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20140225/d1a89048/attachment.html>


More information about the pmwiki-users mailing list