i want to check whether user typed correct string
like my string have specific pattern
WXYZ1234567
1st 4 latter will be alphabet and last 7 will be numbers only
so how i can check it
This is i tried
1 Method
split string in 4+7
then check it is a number or not
but in first 4 latter if number is there it will show it’s a text (text includes alphabets and numbers)
so this method fails
2nd Method
split string 4+7
check first 4 latter one by one if it is number or not
but this method is long