Regex search all matches without discarding previously matched items

38 Views Asked by At

if I have a string "2A3" and I need to extract all combinations of digit followed by letter AND letter followed by digit

so this should return 2A and A3

i tried \d[A-Z]|[A-Z]\d but it returns only 1 combination How to fix this ?

0

There are 0 best solutions below