I have MMYY pattern ( credit card expiry)
I need to analyze each section (01 and 14) : So I tried :
'0114'.split(/\d{2}/i) // ["", "", ""]
It actually see 2 digits as a separators and hence I get nothing.
However , I've managed to do it with :
'0114'.match(/\d{2}/ig) //["01", "14"]
But I wonder about split.
Can I do it also with split ?