Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other What am i forgetting? [a-z A-Z] REGEX & Brain Farts

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #38327
    JohnMotylJr
    Participant

    Howdy folks, im testing to make sure there is only letters passed, no numbers or special chars. How do i only accept letters?

    This seems like such an elementary question but its late, im half asleep, and everything on the screen is starting to look the same. I would really love some quick help from this massive brain fart im having.

    Would this be good enough:

    ^[a-zA-Z]+$
    #103819
    Meta_Ing
    Participant

    Yes, that will work fine.

    And if you are able to set a case insensitivity modifier (probably i), the regex could even be shortened to: ^[a-z]+$

    #103821
    JohnMotylJr
    Participant

    @Meta_Ing, Thanks for your quick response and clarification.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Other’ is closed to new topics and replies.