How can we extract string ‘abc.com ‘ from a string
info@abc.com" target="_blank">http://info@abc.com using
regular expression of php?
Answer Posted / ankush prasad
<?php
$string1="info@abc.com";
$string2=preg_match("/[a-c]+.[c-o]+/",$string1,$a);
print $a[0];
?>
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How can we make a constant in php?
How does php isset work?
Does php need a closing tag?
What is abstract class in php?
What sized websites have you worked on in the past?
What does $_env means?
Why laravel is best php framework?
How to download and install php for windows?
Which php global variable is used for uploading a file?
What is regular expression in php?
When are you supposed to use endif to end the conditional statement?
What are the different data types in javascript?
What does it mean when it says the csrf token is invalid?
Which programming language does php resemble?
What is the default time in seconds for which session data is considered valid?