목록2019/04/04 (1)
MJay
Pattern Matching with Regular Expressions - Part 3
The Wildcard Character The . (or dot) character in a regular expression is called a wildcard and will match any character except for a newline. For example, enter the following into the interactive shell: >>> atRegex = re.compile(r'.at') >>> atRegex.findall('The cat in the hat sat on the flat mat.') ['cat', 'hat', 'sat', 'lat', 'mat'] Remem..
Programming/Python
2019. 4. 4. 00:32