I am using the following pattern to match img tags that don't have alt tags.
/img\s+((width|height|border|class|id|src|usemap|hspace|vspace|onClick|onclick)=(\'|\")[^(\'|\")]+(\'|\")\s*)+>/
I would like it to not match when the src attribute contains 'spacer'. Nothing I have tried works. Any suggestions?