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
What are the advantages of triggers in php?
Is salary fixed or variable cost?
How do I install php?
What is 'float' property in css?
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?
Does strlen include null?
What is member variable?
Explain what is the difference between $var and $$var?
List some features of php that are deprecated in php
What is difference between post and put in rest?
Which php framework is best for web development?
What is cURL in PHP?
What is the use of callback in php?
What is list in PHP?
What is mysql in php?