import re
texts = ['+9812345678','+99123456789']
for s in texts:
	print(re.findall(r'^\+9[98]|\d{2}(?:\d$)?', s))