I have a string and an array, the array contains all kinds of parts of a string I want to find in the original string (this is for basically reading a error log and identifying what line there is a "Could not find", or "Error", etc.)
Is the foreach preg_match the best method?