iglobalusa
Registered User.
- Local time
- Today, 11:28
- Joined
- Jul 12, 2008
- Messages
- 30
What string function, or series of string functions, in a code can I use to prevent a user from :
1) entering a leading 0 in a text field for an ID Code with 10 characters e.g. 0346788692
2) allowing only to enter a leading A or H and no other alpha e.g. A346788692
3) allowing only to enter an L. or P, or LB following a leading 2 and no other alpha or alpha combination e.g. 2L46788692 or 2LB6788692
4) allowing an ending X or N and no other alpha e.g. 346788692X
5) allowing a combination of numbers and alpha but not all alpha e.g.
A34678869X
Thanks for your expert assistance.
1) entering a leading 0 in a text field for an ID Code with 10 characters e.g. 0346788692
2) allowing only to enter a leading A or H and no other alpha e.g. A346788692
3) allowing only to enter an L. or P, or LB following a leading 2 and no other alpha or alpha combination e.g. 2L46788692 or 2LB6788692
4) allowing an ending X or N and no other alpha e.g. 346788692X
5) allowing a combination of numbers and alpha but not all alpha e.g.
A34678869X
Thanks for your expert assistance.