in reply to Re: Text switching
in thread Text switching

If you've got a list of valid apt numbers probably the most efficient thing to do would be create a hash and use that to validate

The danger here is when a valid apartment number (either now or in the future) is also a valid year.

The OP appears to have listed 2022 as being an apartment number - and that's certainly a valid year...