I don't think using ``{ }`` as delimitor is wise when you don't control the regex entered by the user as they have a special meaning in the regex. Can they really be used as delimitor when the regex is ``\d{3}`` ?