hello I am trying what I thought would be a rather easy regex in Javascript but is giving me lots of trouble. I want the ability to split a date via javascript splitting ei
you could just use
date.split(/-/);
or
date.split('-');