Learn Before
Concept

Basic Characters

  • ^ matches the start of a string.
  • $ matches the end of a string.
  • . matches all characters except a newline.
  • | means or, so a|b means it will match a or b. If it matches a first, then b will not be tried.
  • \ is an escape character, which is used to match special characters that usually have other meanings. An example would be $ that matches a literal $ rather than the end of a string.

0

1

Updated 2021-08-24

Tags

Python Programming Language

Data Science

Related