On Sun, Nov 25, 2007 at 09:49:39PM +0100, Benoit Dutilleul wrote: > Now, I am trying to implement (:wrl http://www.mymodel.3d:) according to > the markup development page but I can't get it to work: > > <?php if (!defined('PmWiki')) exit (); > Markup('wrl', 'directives', > '/\\(:wrl (\\d+) :\\)/e', > Keep("<embed src='$1' WIDTH='420' HEIGHT='250' NAME='flux' > TYPE='model/x3d+xml' DASHBOARD='0' LOADSCREEN='1'/>") ); > ?> > > Any idea about what is wrong or missing? > Thanks!
The \d+ in the expression will only match digits. You might want to use \S+? (non-space characters, as few as possible) instead. Pm _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
