I have 2 textboxes on a screen
i need textbox2 to display based on entry in textbox2.
Conditions:
In textbox1
if the length of the string = 5
and
the 4th and 5th character do not end in AA
AND
the string CAN NOT CONTAINS ALL NUMERICS
I NEED THAT STRING DISPLAYED IN TEXTBOX 2
i.e.
AS123 - does not get displayed
12345234 - does not get displayed
ASDAA - does not get displayed
DDDFFE - does not get displayed
12345 - does not get displayed
SDSER - DOES GET DISPLAYED
AAASA - DOES GET DISPLAYED
DERE3 - DOES get displayed
1234E - DOES GET DISPLAYED
Almost got this to work.
If(Len(txt_CustomerNumber_pr1.Text) = 5 && Right(txt_CustomerNumber_pr1.Text, 2) <>"AA"
&& IsMatch(txt_CustomerNumber_pr1.Text, "([A-Za-z]+[0-9]|[0-9]+[A-Za-z])[A-Za-z0-9]*"), txt_CustomerNumber_pr1.Text, "")
BUT the IsMatch regix cant contain numeric
Thanks
Dave