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
Does facebook use php framework?
How to convert strings to upper or lower cases?
Why delimiter is used in mysql?
What is php glob?
What is the current stable version of php?
How to store the uploaded file to the final location?
Where are cookies stored php?
How to pad an array with the same value multiple times?
How to convert the first character to upper case?
Explain what is the main difference between require() and require_once()?
Explain the difference b/w static and dynamic websites?
Why shouldn't I use mysql_* functions in php?
What is php simple definition?
What is the purpose of the php empty function?
What is trim function in php?