help with reg expression

  • Here is the reg expression i'm using to validate a field form.
    "^[-a-z ,é,ç,è,à,â,ê]+$"
    I want it also to include the character " ' "
    How can i do that ?


  • You don't need to put a comma between letters/numbers/whatever inside character classes in regular expressions.

    Like this:

    /^[-a-z éçèàâê']+$/

    Also, that should match '. If it doesn't then something else is wrong. Try using an online regular expression checker like http://www.nvcc.edu/home/drodgers/ceu/resources/test_regexp.asp
    (First one that come up on google)


  • "^[-a-z ,é,ç,è,à,â,ê']+$"


  • "^[-a-z ,é,ç,è,à,â,ê']+$"
    it do not work, i try even adding a , before but still not working







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about help with reg expression , Please add it free.