Follow us on...
Follow us on Twitter
Register
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    7
    Feedback Score
    0

    Regular expression question

    Can anyone help me, what it means?

    ^[a-zA-Z].*[0-9]$

  2. #2
    staff Martin's Avatar
    Join Date
    Dec 2011
    Location
    Prague
    Posts
    348
    Feedback Score
    0
    letter at the beginning of a line, then 0 - n any characters, and number at the end of that line.

  3. #3
    Senior Member ciullaanthony's Avatar
    Join Date
    Jan 2012
    Location
    Arlington, Texas
    Posts
    103
    Feedback Score
    0
    Email validator that adheres directly to the specification for email address naming. It allows for everything from ipaddress and country-code domains, to very rare characters in the username. And this is what is looks like: "^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$"
    Need Help? PM me for help.Thanks for visiting: http://www.webdevforum.com/

  4. #4
    Junior Member
    Join Date
    Jan 2012
    Posts
    7
    Feedback Score
    0
    ciullaanthony I meant what "^[a-zA-Z].*[0-9]$" means.

    thanks martin, I understand it now. "^" is start of the line and "$" is end of the line?

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts