Ask for a regular expression

the requirement is 010203 = > [01JEI 02jue 03]
to write a regular "010203". Split (regular) = [01J 02pr 03]
how do you write this?
/ (0 [1-9] | (1 [0-2])) + / g.test ("0122") Why true is returned here. I want to match the number between 01 and 12. 22 does not match


"010203".match(/\d{2}/g);

or

"010203".split(/\B(?=(?:\d{2})+\b)/);

or

"010203".split(/\B(?=0)/);
Menu