.NET Regex dot character matches carriage return?

后端 未结 5 1099
南笙
南笙 2020-12-31 06:39

Every single flavor of regex I have ever used has always had the \".\" character match everything but a new line (\\r or \\n)... unless, of course, you enable the single-lin

5条回答
  •  猫巷女王i
    2020-12-31 07:29

    Except in SingleLine mode, . will match every character except \n.
    As you've noticed, it does match \r.

    I don't know why.

提交回复
热议问题