Other Resources:
Escape sequence - Carriage Return character \r
What is the escape sequence for the Carriage Return character?
On Unix systems, a line break is a single New Line character. But on Windows systems, a line break is a Carriage Return character followed by a New Line character. How to write a regular expression to capture line breaks for both systems?
✍: FYIcenter.com
The escape sequence for the New Line or Line Feed character is \n, which is the same as \x0D.
The regular expression to capture line breaks on both Unix and Windows systems:
\r?\n
\r? - matches the Carriage Return character or nothing
\n - matches the New Line character
2013-01-26, 0👍, 0💬
Popular Posts:
How to capture the MSN (Microsoft Network) bot entries from Web log file? Here are some Web log file...
How to capture the Baidu spider entries from Web log file? Here are some Web log file entries: 127.0...
All credit card numbers issued by Diners Club must start with 300 through 305, 36 or 38 and have 14 ...
All credit card numbers issued by Diners Club must start with 300 through 305, 36 or 38 and have 14 ...
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...