Something like that?
re = new RegExp(/\d{2}\/\d{2}\/\d{4}/);
"21/02/2017".match(re) /* ["21/02/2018", index: 0, input: "21/02/2018"] */
"21/2/2017".match(re) /* null */
solved What is the regex ?
Something like that?
re = new RegExp(/\d{2}\/\d{2}\/\d{4}/);
"21/02/2017".match(re) /* ["21/02/2018", index: 0, input: "21/02/2018"] */
"21/2/2017".match(re) /* null */
solved What is the regex ?