Text - Carriage Return (CR) Character

Data System Architecture

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.

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.





Discover More
Newline
Characters - Newline - End of Line ( EOL ) - Line Separators - Line Break

To mark line endings in text files, the following characters are used: Unix/Linux file systems use newlines (\n). MacOS uses carriage-returns (\r). Windows uses a carriage-return followed by...
Regexp
Regular Expression - Line (Beginning and End)

Page the definition of line boundary (EOL) in regular expression You can define the begining or the end of a line with boundary matcher boundary matcher Description ^ The beginning of a line...
Data System Architecture
Text - Control Characters

Control characters are used to control the interpretation or display of text, but these characters themselves have no visual or spatial representation. ... Unicode_control_characterscontrol...



Share this page:
Follow us:
Task Runner