Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Regular expressions javascript

Options
  • 04-09-2007 5:25pm
    #1
    Registered Users Posts: 1,552 ✭✭✭


    Hi
    I cant find any good javascript pattern tutorials that tell me how to do what I want to do.

    I need a pattern which will allow (a letter followed by 5 digits) or (6 digits on their own).

    I cant seem to find what allows an or.

    I thought | would work.

    can you help me out.
    [a-z]d(5) | d(6)
    Should that not work?


Comments

Advertisement