how to split a string into three varying sections in JavaScript

Viewed 18

i would like help to split a string into three different sections somewhat like this

string = "5MCON00754";

array ="5M","CON","00754";

if this is possible i would really appreciate it (btw its always in "1number1letter","3letter","5number" format)

0 Answers
Related