[英]RegEx Not Matching Carriage Return without Linefeed
There is no \\r
in your demo. 您的演示中没有
\\r
。
This is a newline character, either you were looking for \\\\r
or [\\n\\r]+
if your string happens to include newlines. 这是换行符,如果您的字符串碰巧包含换行符,则您正在寻找
\\\\r
或[\\n\\r]+
。
For a more in-depth answer, see this explanation . 有关更深入的答案, 请参见以下说明 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.