/\{([^}]+)\}// - delimiter\{ - opening literal brace escaped because it is a special character used for quantifiers eg {2,3}( - start capturing[^}] - character class consisting of ^ - not } - a closing brace (no escaping necessary because special characters in a character class are different)+ - one or more of the character class) - end capturing\} - the closing literal brace/ - delimiter