1marcong95 71 天前 1
m The ^ and $ anchors now match at the beginning/end of each line respectively, instead of beginning/end of the entire string or input.
就是开了 m 之后^$匹配的是每一行的行首行末
224owls 70 天前
Treat the string being matched against 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.