I am using the split function below to get a times value:
12:00
I now want to include another .split value (period):
12.00
I discovered I could use regex to achieve this but am failing to get a working result.
WORKING
var time = time.val().split(':')
FAILING (REGEX)
var time = time.val().split('/:|\./')