[pmwiki-users] Minor markup request

Patrick R. Michaud pmichaud at pobox.com
Mon Sep 26 14:59:20 CDT 2005


On Sun, Sep 25, 2005 at 11:36:13PM +0200, malexism wrote:
> Patrick R. Michaud a écrit :
> >  Markup(' !', 'inline',
> >    '/ !/', 
> >    ' !');
> 
> Thank You Patrick, it works. Idem with ":" and ";", but not with "?". I 
> think it's because "?" is a joker in regex...

If you want it to work with all four, you can do:

   Markup(' !', 'inline',
     '/ ([!:;?])/', 
     ' $1');

Pm




More information about the pmwiki-users mailing list