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
What is the meaning of "enctype= multipart/form-data" ?
How to get ip address of clients machine?
List some sorting functions in php?
How can I find my php version?
What is a composer?
What is the output of the following php code?
Explain $_FILES Superglobal Array?
Why do we use htaccess
What is uniqid php?
Which function(s) in PHP computes the difference of arrays?
Can you use both this () and super () in a constructor?
How to pass an argument to a function?
How is the comparison of objects done in php?
What is form submission?
How to copy a file?