[pmwiki-users] serial number out of a pagename

noskule noskule at gmx.net
Tue Aug 12 10:32:08 CDT 2008

hi list
I build serialized pages with powertools / serialname. What the best way 
to get the number out of the pagename? I want to do a pagevar $SerialNumber.

I tried with a regexpr:
  $number = preg_replace('/-[^\d]+$/',"",$name);

I get -1 as result.
Any suggestions?
thanks nos

More information about the pmwiki-users mailing list