• The regular expression you are using are not exactly right.
    You should change to:

    <\s*?img\s+[^>]*?\s*src=[‘”]([^'”]+)[^>]*?>

    you can test here: https://regex101.com/

    • This topic was modified 8 years, 5 months ago by wuboys.
  • The topic ‘always get the last img src’ is closed to new replies.