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 / rajan vardawaj
We can use the preg_match() function with “/.*@(.*)$/” as
the regular expression pattern. For example:
preg_match(”/.*@(.*)$/”,”info@abc.com”,$data"
target="_blank">http://info@abc.com”,$data); echo $data[1];
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Explain the difference between array_merge() and array_combine()?
What is a php form?
How can you get the size of an image in PHP?
Tell me is it possible to submit a form with a dedicated button?
What is $globals php?
Is php still relevant 2019?
What is final keyword in php?
What is ci framework in php?
How error handling is being handled by php?
Why is node js better than php?
How does php session work?
How to remove the new line character from the end of a text line?
How to break a file path name into parts?
What are the disadvantages of php?
Why php is better?