^\"*$. Here is a resource for learning more about JSON escaping that also comes with a tool that does it for you.
regexFlagsoption that you can use to get the same functionality without having the flag as a part of the regex string itself. Check out how to use it here.
Below is a quick example of using the
regex_matches validator to make sure that
age is only a numerical value of a maximum of 3 digits in length.