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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Regular expressions javascript

  • 04-09-2007 4:25pm
    #1
    Registered Users, Registered Users 2 Posts: 1,559 ✭✭✭


    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