Hi all, I'm using a date field checker but I want to change the regex from DD-MM-YYYY to DD/MM/YYYY but I can't seem to get it working..
Here's the snippet of code:
"date": {
"regex": "/^[0-9]{1,2}\-\[0-9]{1,2}\-\[0-9]{4}$/",
"alertText": "* Invalid date, must be in DD/MM/YYYY format"
},
I'm sure it's quite simple but I have no idea about regex.. I've tried:
/^[0-9]{1,2}\/\[0-9]{1,2}\/\[0-9]{4}$/
and
/^[0-9]{1,2}\\/\\[0-9]{1,2}\\/\\[0-9]{4}$/
but neither of them work for me..