Hey guys,
I think what I want to do is match a pattern, I can’t quite seem to get my head around how it works.
My app needs an 8 digit number entered for a loyalty card.
The first 4 digits never change e.g. 2222
So I need to ask people to enter a number. I have done this and assigned the value to a variable.
The bit I need help with is the validation of that value.
It needs to be always 2222 + xxxx (where xxxx is the changeable part of the loyalty card number)
Looking forward to some advice.
Thanks