https://www.autohotkey.com/docs/misc/RegEx-QuickRef.htmBy default, a dot matches any single character which is not part of a newline (`r`n) sequence, but this can be changed
It is not true:
Code: Select all
msgbox % RegexMatch("`r`n", ".\n")
msgbox % RegexMatch("`r`n", "\r.")
http://www.pcre.org/pcre.txtWhen a line ending is defined as a single character, dot never matches
that character; when the two-character sequence CRLF is used, dot does
not match CR if it is immediately followed by LF, but otherwise it
matches all characters (including isolated CRs and LFs). When any Uni-
code line endings are being recognized, dot does not match CR or LF or
any of the other line ending characters.