Regular expression, also known as regular expression, regular expression (Regular Expression). Regular expressions are strings that can be used to match a series of strings that meet certain grammatical rules. You can check whether a string contains a certain kind of substring by matching the string, or replace the matching substring or extract a substring that meets certain conditions from a certain string. A regular expression is a string composed of ordinary characters (such as letters a to z, etc.) and special characters (called "metacharacters", such as: * * etc.), which can represent a certain type of string (such as : A string of all letters, a string of all numbers, etc.). A regular expression is like a template. The searched string is matched with the template. The part that matches the template succeeds, and the part that does not match the template fails. At present, many computer programming languages support the use of regular expressions to match string operations, and Python is also one of them.
正在翻译中..