Say I have a phone number +9812345678 and +99123456789.
I want to split it in ["+98","12","34","56,"78"] and ["+99","12","34","56","789"] i.e: "Start with +99 or +98 and then split in groups of atleast two and max 3"
I have tried something like:
import re
a = "+9812345678"
re.compile("(\+9[98])(\d{2,3})+")
which gives
['', '+98', '78', '']
that is a bit wrong.