I need to create a regular expression for a Canadian and US postal code but the zip code has to start at 10000 and go to 99999, I've tried various configurations but it won't work for the zip code starting at 10000, not sure what I'm doing wrong. Any help would be appreciated.
'^[A-Z][0-9][A-Z]-[0-9][A-Z][0-9]$|(^[1-9]{5}(?[0-9]{4})?$)'