Skip to main content

Python for Datascience

Regular expressions (regex) are patterns used to match character combinations in strings. These patterns can be simple characters or a combination of simple and special characters.

Examples:

  • /abc/ - A simple pattern matching the literal string "abc"
  • /ab*c/ - A pattern using special characters to match variations