The single-row mode allows the decimal point (.) to match any character (from RegEx match tracer) including the line break (\ n ).
According to <Microsoft Windows Script technology> CHM:
The decimal point (.) matches any single character except "\ n. To match any character including '\ n', use a pattern like' [. \ n.
There are only three regular expression object modes:
G (search for all occurrences of the pattern in full text)
I (Case Insensitive)
M (multi-row search)
That is, there is no single row matching mode.
However, as mentioned in the CHM documentTo match any character including '\ n', use a pattern like' [. \ n] '.
(Here is an excerpt from: Regular Expression: how to match all characters)
Decimal point (
.) The number of digits in the middle of [] turns into a real decimal point (\.)
If you do not believe it, you can test it like this:
ASDFASDF <span style = "font-size: 22px"> ASDFASDF </span> ASDFASDF
Regular Expression:
<Span style = \ "font-size \: 22px \"> [^.] + </span>
The matching is successful.
The final result should be either (. | \ n) or (. | \ n)
In the manual, [. \ n] indicates that any character is incorrect (it is also the original saying, haha)