[pmwiki-users] Need help to complete a recipe to read WRL 3D models
Patrick R. Michaud
pmichaud at pobox.com
Sun Nov 25 14:54:38 CST 2007
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
More information about the pmwiki-users
mailing list