How can we extract string ?allinterview.com ? from a string
?http://info@allinterview.com? using regular expression of PHP?
Answer Posted / raj
$text = "http://info@allinterview.com";
preg_match('|.*@([^?]*)|', $text, $output);
echo $output[1];
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to get ip address of clients machine?
How can you increase the maximum execution time of a script in php?
Write a php function to convert all null values to blank?
What is the difference between require_once and require in php?
How is it possible to propagate a session id?
How stop the execution of a php scrip?
Which parts of php are case sensitive?
Is empty in php?
What is session expiry?
What is array filter php?
How does the identity operator ===compare two values in PHP?
Do you know how to delete a file from the system?
Tell me what is use of in_array() function in php?
What is php session_start() and session_destroy() function?
Does php has a future?