in reply to Re^3: Can't quite get this regex working
in thread Can't quite get this regex working

I much prefer:
/[^]]*(?:][^]]+)*/
which doesn't require any lookahead, backtracking or modifiers.