Hello I have a plate number BZ8345LK
and want convert to BZ 8345 LK
(adding space between char and number).
I tried with this Regex but not working, only space first char with number. Ex BZ 8345LK
, the 'LK
' keep not space with number.
var str = 'BZ8345LK';
str.replace(/[^0-9](?=[0-9])/g, '$& ');
# return BZ 8345LK, I want BZ 8345 LK