Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

json regex

{
   "type": "string",
   "pattern": "^(([0-9]{3}))?[0-9]{3}-[0-9]{4}$"
}
Source by json-schema.org #
 
PREVIOUS NEXT
Tagged: #json #regex
ADD COMMENT
Topic
Name
3+5 =