Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

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

user-image
Question ajoutée par Julfkar Moh Umar , Sr. Software Engineer , Aakash Edutech Private Limited
Date de publication: 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
par 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

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?