Code Snippet posted by:
Parvendra | Posted on: 11/16/2009 | Category:
Regular Expression Codes | Views: 2661 | Status:
[Member]
|
Alert Moderator
Below written regular expression will fetch domainname.com string from any url
regex = "/.*@(.*)$/";
for example from sting "testname@testdomain.com" it will return testdomain.net.
Found interesting? Add this to: