I'm using preg_match_all to import images using the
Currently works:
//get image url from url
preg_match_all('/<img[^>]+>/i',$file->body, $images);
I tried this:
//get image url from url
preg_match_all('/<img id="charity"[^>]+>/i',$file->body, $images);
Once altered I get a 500 server error so I assume my syntax is wrong. How do I correctly alter this to work correctly?