in reply to Re^3: How to find the outermost pair of square brackets with a regex?in thread How to find the outermost pair of square brackets with a regex?