G
Greg
Standar 9-digit postal code expression, copied and pasted from a web
form validator expression:
@"\d{5}(-\d{4})?
I try to use it to validate a windows textbox, but it does not like
the '?'.
If the first part is matched,it doesnt care what comes afterwards.
Removing the ? gives proper behavior.
Can anyone please tell me why this is works on an asp page but not
with the Regex class?
Thanks,
Greg
form validator expression:
@"\d{5}(-\d{4})?
I try to use it to validate a windows textbox, but it does not like
the '?'.
If the first part is matched,it doesnt care what comes afterwards.
Removing the ? gives proper behavior.
Can anyone please tell me why this is works on an asp page but not
with the Regex class?
Thanks,
Greg