How Can We Extract String Abc.com From A String Http://info@abc.com Using Regular Expression Of Php

How Can We Extract String Abc.com From A String Http://info@abc.com Using Regular Expression Of Php


  • 31 Jan, 2012

    We can use the preg_match() function with "/.*@(.*)$/" as the regular expression pattern. For example: preg_match("/.*@(.*)$/","http://info@abc.com",$data);echo $data[1];

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.