Help for this page
$re = qr/ \[ # Opening bracket ((?: # Capture the contents ... )+) # and allow repeats internally \] # Closing bracket /x;