About
The carriage return (CR) is a control character.
It:
- is the end of line (EOL) on Macintosh and one EOL element for Windows.
- moves the cursor back to the beginning of the line in a console.
Articles Related
Position
It's the 14 character of the character set ASCII (and therefore also unicode)
You can get it with a code point function passing:
- the 13 decimal
- or 0D hexadecimal.
See its definition on Unicode (#x000D).
Example
- in Javascript:
String.fromCodePoint(13);
- Oracle SQL function
chr(13)
Regular Expression
In regular expression, the carriage returns is represented with \r.