What is regular expression in Python ?
Regular Expressions, also known as “regex” or “regexp”, are used to match strings of text such as particular characters, words, or patterns of characters. It means that we can match and extract any string pattern from the text with the help of regular expressions.
What are regex metacharacters in Python ?
Metacharacters are considered as the building blocks of regular expressions. Regular expressions are patterns used to match character combinations in the strings. Metacharacter has special meaning in finding patterns and are mostly used to define the search criteria and any text manipulations.
What are python regex special sequences ?
The special sequence represents the basic predefined character classes, which have a unique meaning. Each special sequence makes specific common patterns more comfortable to use. For example, you can use \d sequence as a simplified definition for character class [0-9] , which means match any digit from 0 to 9.
#Subscribe #PythonCompleteTutorial