你对于这两个 Modifiers 的理解是不对的,你看下官方文档,写的非常清楚:
mTreat the string as multiple lines. That is, change "^" and "$" from matching the start of the string's first line and the end of its last line to matching the start and end of each line within the string.
sTreat the string as single line. That is, change "." to match any character whatsoever, even a newline, which normally it would not match.