Corrected test for multiline matches, according to the real expected behaviour of PCRE library.

In particular, the PCRE_MULTILINE option bit only affects strings that contain ether ^ or $.