[pmwiki-devel] another regex pattern question

Dominique Faure dominique.faure at gmail.com
Mon Aug 31 02:22:01 CDT 2009


On Sun, Aug 30, 2009 at 18:58, Hans<design5 at softflow.co.uk> wrote:
>
> PS: this simpler pattern did not work:
>
> /\[([@=])(.*?)($pat)(.*?)\1\]/
>
> because in string with $pat = xxx like
>
> [@abc@] xxx [@def@]
>
> it would match the lot, rather than failing because $pat is not in
> either of the two [@....@] markup brackets.
>
> so I am scratching my head...
>
> Hans

Perhaps you could use the same kind of trick I used in MarkupExprPlus,
ie. abuse of the Keep stack and only have simple tokens to process.

-- 
Dominique



More information about the pmwiki-devel mailing list