Python: Difference between revisions

81 bytes added ,  15 April 2020
Line 159: Line 159:
* <code>re.match</code> will return None if there is no match
* <code>re.match</code> will return None if there is no match
* <code>re.match</code> matches from the beginning of the string
* <code>re.match</code> matches from the beginning of the string
* Use <code>re.findall</code> to match from anywhere in the string
* Use <code>re.search</code> to match from anywhere in the string
* Use <code>re.findall</code> to find all occurrences from anywhere in the string


===Spawning Processes===
===Spawning Processes===