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
Tell me how is it possible to propagate a session id?
What is pdo in php why use?
What can php do?
What is a string in php?
What is prepared statement in php?
Can we learn php without html?
What’s the difference between htmlentities() and htmlspecialchars()?
Code to upload a file in PHP?
What will the ?getdate() function returns in PHP?
Explain what is smarty?
What is framework in php for beginners?
What is advanced php programming?
Can we override magic methods in php?
What types of loops exist in php?
Is multilevel inheritance possible in php?