I want to help get email address from the ranks of text How to work on it ?? ex: I want to help get [xxxxx@hotmail.com] from the ranks of text echo "xxxxx@hotmail.com";
http://www.regular-expressions.info/email.html It's quite complex to make sure you get all of them and not anything that isn't. And remember that the tld can be anything now.
preg_match_all("~^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$~",$text,$matches); Code (markup): NB: This code won't work with custom tld's longer than 6 characters.
thank you ssmm987 but i tried the method did not work mobile numbers (11 digit): preg_match("/^[0-9]+$/", $text, $matches);
Mobile numbers aren't email addresses, you can't use the RegEx for one to find the other. The site I linked to has all you need to do phone numbers too, but it's a different RegEx.
Custom TLDs aren't something to be worried about. The fee is $185,000 with a $25,000 yearly fee. The only companies that can afford it are most likely those already established with an online .com presence. But besides that...even if major companies start switching over ALL of your email providers do not use a custom TLD. This shouldn't be a concern of anyones quite yet...
ICANN has received more than 2000 applications for custom TLD's. I would plan for them being commonplace in the next 5 years.