Other Special Characters
- Spaces
- These are also characters.
- Tabs (\t)
- The above
\tis often referred to as a control character.
- The above
- Line returns (\r, \n, \r\n)
\ris a return line.\nis a new line.- Also called a
line feedercharacter. - Some operating systems use one or the other or both together.
- Depends if the file using was made on Windows, Mac or Linux.
- Also called a
- Example:
a\tb- Matches “a b”
- Example:
c\nd- Matches: abc def
\nallows for matching text across multiple lines.