The error of a failing pattern is extremely difficult to read. This may be better served with separate lines between the failing string and matching string. Other than this the pattern failure should suggest an update based on the received pattern. Doing things such as replacing whitespace with \s+ and running preg_quote on the string is a simple way to remove obvious difficulties.
The error of a failing pattern is extremely difficult to read. This may be better served with separate lines between the failing string and matching string. Other than this the pattern failure should suggest an update based on the received pattern. Doing things such as replacing whitespace with \s+ and running preg_quote on the string is a simple way to remove obvious difficulties.