# Capture what's between brackets, # omitting leading white space. /\[\s*([^\]]+)/;