Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Dec 2005
    Posts
    217
    Thanks
    1
    Thanked 0 Times in 0 Posts

    regex for url & email ??

    Hello forums!!
    I need a very good validation for "url" and "email" using regular expression.
    Following are the criteria for url:
    * may have http or https @ start
    * may or may not have www.
    * may or may not have query string like ?action=a&pack=p
    * may also support for country level domain

    Following are the criteria for email:
    * info@example.com
    * info.us@example.com
    * info@example.net.au
    * info.us@example.net.au
    * may support above formats
    Note: regex syntax should be valid for both php and javascript
    Any suggestions, comments are warlmy welcome
    Thanks in advance to all..

  • #2
    Regular Coder
    Join Date
    Dec 2005
    Posts
    217
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Knock Knock
    Calling for suggestion again..

  • #3
    Senior Coder kbluhm's Avatar
    Join Date
    Apr 2007
    Location
    Philadelphia, PA, USA
    Posts
    1,509
    Thanks
    3
    Thanked 258 Times in 254 Posts
    Calling for suggestion again who?

  • #4
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    Quote Originally Posted by PHPycho View Post
    Knock Knock
    Calling for suggestion again..
    http://regexlib.com/Search.aspx
    Quote Originally Posted by kbluhm View Post
    Calling for suggestion again who?
    Nice.


  •  

    Posting Permissions

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