[pmwiki-users] brackets without space
JB
jbit at ev1.net
Fri Jan 27 14:53:23 CST 2006
> > I need regular expression help.
>
> I assume the double backslash was inserted by your mailer.
> How about this (the same as above but without the dot):
Jens,
The double slash is in the PHP code which requires
it to be double escaped.
A solution provided by PM worked, but thanks so much for the
effort you put forth!
Thanks
John Bittner
> /^\[([^[\]]*?)\]/
>
> meaning: At line begin match a single "[" followed by a sequence of anything
> but "[" or "]" and a closing "]"
>
> another variant:
>
> /^\[([^[]?.*?)\]/
>
> meaning: At line begin match a single "[" followed by zero or one "non ]",
> followed by anything, followed by "]"
More information about the pmwiki-users
mailing list