0 votes
in PHP by

^[0-9]{5}(\-[0-9]{4})?$ matches

A) 90001 and 90002-4323
B) 9001 and 12-4321

1 Answer

0 votes
by

90001 and 90002-4323

...