[pmwiki-users] Regex question

Hans design at softflow.co.uk
Fri Jan 27 09:51:06 CST 2006


I am looking for a markup to apply only to names (including digits
and underscore) bracketed by single curly brackets like {word} or
{Another_Word2}.
I came up with this:   '/\{([\\w]+?)\}/'
but i never seen the use of \w in pmwiki. Is there a  reason not to
use \w ?

BTW i try to make a tighter markup for smilies written like {happy},
which does exclude css code (which has a : somewhere inside the  { }.

Best,
 Hans                          






More information about the pmwiki-users mailing list