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
Will react hooks replace redux?
Tell me how to create a text file in php?
How to specify argument default values?
How do you put a space in html?
What are Routines?
Does wordpress run on php 7?
Who is the father of php and what is the current version of php and mysql?
Tell us how to create an array of a group of items inside an html form?
Is polymorphism inherited?
How do you end php?
What types of Data Can Be Used as Array Keys?
What is a php namespace?
What is strcmp?
How to track no of user logged in?
What is input sanitization in php?