put nested_brackets_regex and nested_url_parenthesis_regex as local variables