G
Guest
Hi,
Thought this would be simple! If I want to validate a field that can contain
"z" followed by 3 digits OR it's a completely empty string, how do I do that?
The z123 bit is simple, but the empty string is giving me problems! e.g.
^[zZ]\d{3}$|
....doesn't work (I thought the trailing "|" would detect the empty string).
Thanks.
Thought this would be simple! If I want to validate a field that can contain
"z" followed by 3 digits OR it's a completely empty string, how do I do that?
The z123 bit is simple, but the empty string is giving me problems! e.g.
^[zZ]\d{3}$|
....doesn't work (I thought the trailing "|" would detect the empty string).
Thanks.