Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How can we extract string ‘abc.com ‘ from a string ‘http://info@abc.com’ using regular expression of PHP?

user-image
Question added by Julfkar Moh Umar , Sr. Software Engineer , Aakash Edutech Private Limited
Date Posted: 2016/01/27

It can extract sub- strings of any series using a range of specifications within the parentheses. ... s := "abc" s[2] := "" s now has a value of "ac" s := "abcdefg" s[3:5] 

Fady Fawzy
by Fady Fawzy , Technical Solutions Architect , IBM

you can use the split command to split your string and then you can get the domain of any email

$test=split("@",$Email);

More Questions Like This