On Sun, Aug 30, 2009 at 12:58 PM, Hans<desi...@softflow.co.uk> wrote:
>
> PS: this simpler pattern did not work:
>
> /\[([...@=])(.*?)($pat)(.*?)\1\]/
>
...

Try this:

    /\\[([...@])(?:[...@]|@(?!]))*$pat(?:[...@]|@(?!]))@]/

Unfortunately, once again I can't generalize it to match both the
[...@...@] and the [=...=] in the same pattern.  I just can't figure out
how to match ([...@=]) and later negate it in a character class like
[^\1].

-Peter

_______________________________________________
pmwiki-devel mailing list
pmwiki-devel@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Reply via email to