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 does it mean when it says the csrf token is invalid?
What is the use of session and cookies in php?
Explain PHP looping?
Is php a low level language?
What is $_ get?
What do you mean range() in php?
Does apache use php?
Explain what are some new features introduced in php7?
What is use of htmlspecialchars php?
How do you check is php not empty?
Is php object oriented?
Can we use onclick in submit button?
Is php 7.0 stable?
What is the Default syntax used in PHP?
Write a program to get second highest number in an array using php?