You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
From the Python 3 documentation: Match objects always have a boolean value of True. Since match() and search() return None when there is no match, you can test whether there was a match with a simple if statement: match = re.search(pattern, string) if match: process(match) |
3 years ago | |
|---|---|---|
| .. | ||
| conf | 3 years ago | |
| rules | 3 years ago | |
| __init__.py | 3 years ago | |
| __main__.py | 9 years ago | |
| cli.py | 3 years ago | |
| config.py | 3 years ago | |
| linter.py | 3 years ago | |
| parser.py | 3 years ago | |