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 to track no of users logged in?
How to open a file for reading?
What is session management php?
Php program to generate fibonacci series?
Is it possible multiple inheritance in php?
What is use of preg_replace in php?
Can I run php without xampp?
Is null in php?
How send email using php?
What is the difference between overloading and overriding in php?
I need to know about the courses which are useful in corporate companies.. especially php/mySQL, Java/j2ee, .NET.. also tell if any other courses are valuable
How can php and html interact?
Write a php function to convert all null values to blank?
Why session is required?
Which is the best php framework for a beginner?