A regular greedy match
Non-greedy mode is based on the minimum number of repetitions
Non-greedy match
The regular method
Re.split Regular Segmentation
Number of Splits
Keep delimiters, enclose delimiters with one parenthesis
Sub substitution string
Requires three parameters, content to replace (regular), new content, string
Write separately with compile
Can write a rule once
Then multiple matches, the advantage is convenient and flexible.
Returns an Iterator object
Crawler crawling watercress Movie information, with regular
Module Configparser
Function: Create the following types of files
How to use
Read operation
Default is the default information and does not need to be printed, which is the shared information for all paragraph information.
Use the method to determine whether a field is within a file
If the value is taken, the contents of the file are taken out, the dictionary keys in the dictionary
Subprocess Module
When called, the freshmen become a process.
Linux environments do not need to add shell=true unless the command is a combination command
Python Learning section 15th (Regular)