Perfect! Thank you!
This is the second regexp question I've had over the past few days and the
answers I've received have shown me I have to stop thinking so procedurally
and get a bit more "declarative" and "set" oriented. Such a simple solution
created just by looking at the problem a little differently, as you have.
"Christof Nordiek" wrote:
Hi,
try this:
^([zZ]\d{3})*$
hth
Christof
"BillAtWork" <Bi********@nospam.nospamschrieb im Newsbeitrag
news:79**********************************@microsof t.com...
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.