Add support for 'm' (multiline) regex flag