Home »

How can we extract string ‘webkingsolutions.com ‘ from a string info@webkingsolutions.com using regular expression of PHP?

Question ListCategory: PHPHow can we extract string ‘webkingsolutions.com ‘ from a string info@webkingsolutions.com using regular expression of PHP?
alisataylore190 author asked 10 years ago
1 Answers
adamemliy16 author answered 8 years ago

preg_match(“/^http://invalid.invalid/@(.+)$/”,’info@webkingsolutions.com’,$found);
echo $found[1];

Please login or Register to Submit Answer