I want to split this regexp pattern 2 numbers-3 numbers-5 numbers and letter in two part. Numbers and "-" one array and the letters in the second array.
I been trying to figure it out for a while. Hoping I can get some help.
Here is an example
"12-123-12345A" <----- the string
// I want to split it such that it can be ["12-123-12345","A"]
I tried this
"\\d{2}-\\d{3}-\\d{5}"
// that only give me ["", "A"]
and this
"(?<=\\D)(?=\\d)|(?<=\\d)(?=\\D)"
// ["12", "-", "123", "-", "12345", "A"]