[pmwiki-users] brackets without space

JB jbit at ev1.net
Fri Jan 27 14:09:21 CST 2006


I need regular expression help.

Here is my current regular expression:

  /^\\[([^[].*?)\\]/

This will find 

    [anytext]
    [abcdefghij]
    [ ]

and not 

    [[alink]]


But it will not find "[]" - two
brackets without a space between them.

Can I make it work the same way except also 
allow "[]"?



Thanks


John Bittner





More information about the pmwiki-users mailing list