[pmwiki-users] brackets without space
Patrick R. Michaud
pmichaud at pobox.com
Fri Jan 27 14:33:17 CST 2006
On Fri, Jan 27, 2006 at 02:09:21PM -0600, JB wrote:
> 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 "[]"?
Perhaps...?
/^\\[([^[]*?)\\]/
Pm
More information about the pmwiki-users
mailing list