argv Command Line Arguments and the re Module
Accepting arguments from command line
argv[0]
- is by default the name of the application -application.py
from belowYou would run this from the command line like this:
The re module (RegEX Module)
Search for things using regular expressions
The
re.findall("string", text_variable)
returns a list of the times it found the stringExample:
Last updated