\r metacharacter finds a position (index value) of first occurrence of carriage return character.
|Number||Returns the position where the carriage return character was found.|
|-1||If no carriage return character is found.|
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.