I have the following HTML with many classes:
<img class="lorem ipsum red" />
<img class="red" />
<img class="lorem red ipsum dolor" />
<img class="red ipsum" />
I'm using preg_match_all to find all images
preg_match_all( '/<img [^>]+>/', $html, $matches )
Is it possible to match all img tags which have class name red?
I tried /red\d+/ but does not work