'; $pattern="/<[img|IMG].*?src=['|"](.*?(?:[. gif|.jpg]))['|"].*?[/]?>/"; p"/>
'; $pattern="/<[img|IMG].*?src=['|"](.*?(?:[. gif|.jpg]))['|"].*?[/]?>/"; p">Home >Backend Development >PHP Tutorial >java regular expression PHP extracts the image address in the string [regular expression]
Copy code The code is as follows:
$str='
The above introduces the java regular expression PHP to extract the image address in the string [regular expression], including the content of java regular expression. I hope it will be helpful to friends who are interested in PHP tutorials.