How can we extract string "abc.com" from a string "https://info@abc.com" using regular _expression of php?
Correct Answer: We can use the preg_match() function with “/*@(*)$/” as the regular expression pattern For example: preg_match("/*@(*)$/","https://info@abccom",$data); echo $data[1]; ?>