Added multiline regex support