The \r metacharacter is used to find a carriage return character. \r returns the position where the carriage return character was found.