...

View Full Version : regex for url & email ??



PHPycho
08-10-2007, 06:10 AM
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..

PHPycho
08-15-2007, 05:56 AM
Knock Knock
Calling for suggestion again..

kbluhm
08-15-2007, 06:11 AM
Calling for suggestion again who?

Inigoesdr
08-16-2007, 12:58 AM
Knock Knock
Calling for suggestion again..

http://regexlib.com/Search.aspx

Calling for suggestion again who?
Nice.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum