Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post regular expressions challenge!

    I'm trying to build a regular expression for Canadian postal codes for javascript but I'm not really up to the task. Can anyone here do it?

    I needs to be:
    letter (upper case only)
    number
    letter (upper case only)
    no space OR space OR dash
    number
    letter (upper case only)
    number
    And then no more.

    What would this regular expression look like?

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try looking here and search for: zip codes

  • #3
    New Coder
    Join Date
    Jun 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That is an awesome site. Thanks!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •