comma delimited regular expression

Discussion in 'Javascript' started by Bosconian, Dec 7, 2006.

  1. Bosconian

    Bosconian Guest

    I need a regular expression that will validate a double quote comma
    delimited list where the odd entries are numeric and the even are
    alphabetical. Each pair must also be on a separate line. For example:

    "1","Peter"
    "2","Paul"
    "3","Mary"

    I've used the following expression to validate comma delimited lists, but
    without the double quotes, numeric/alpha pairing and line return
    restriction.

    ^([A-Za-z0-9]?)+([,]\s?([A-Za-z0-9]?)+)*$

    Any help would be appreciated.
    Bosconian, Dec 7, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Yama

    Comma Delimited

    Yama, Dec 15, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    378
    Ken Cox [Microsoft MVP]
    Dec 16, 2003
  2. Luis Esteban Valencia

    Read Comma Delimited File

    Luis Esteban Valencia, Jul 27, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    2,797
    Paul Clement
    Jul 27, 2005
  3. Replies:
    3
    Views:
    8,517
  4. RyanL
    Replies:
    6
    Views:
    662
    Paul McGuire
    Aug 28, 2007
  5. Replies:
    5
    Views:
    209
Loading...

Share This Page