I am trying to make a regex for the endpoint which can validate a string for lowercase (or concatenated with - )
BUT if there is a curly braces, then a word inside a curly braces should be in lowerCamelCase.
Here is an example string:
/v1/accounts/{accountNumber}/balances
OR /v1/user-account/balances-sheet
I am using a following regex '^[\/a-z\{\}]+$' to validate above examples but not getting the point how I can validate curly braces condition OR if it possible to combine in single Regex?
