in

Use regular expressions to detect date format



A list of all the resources used

  • https://regex101.com/ – To test regex

  • https://www.dataquest.io/blog/regex-cheatsheet/ – For revising and using the symbols to generate regex

  • https://python101.pythonlibrary.org/chapter3_lists_dicts.html – For seeing the usuage of dictionaries and tuples

  • https://stackoverflow.com/questions/4664850/how-to-find-all-occurrences-of-a-substring/4664889 – For seeing how to obtain all occurance of a string

Execution Instructions

Setup

# Setup python virtual environment
$ virtualenv venv --python=python3
$ source venv/bin/activate

# change directory to the repo where we have requirements file
$ cd Regular_Expressions/

# Install python dependencies
$ pip3 install  -r requirements.txt 

Run

Use the following command in the current directory.

python3 src/main.py data/dev/ output/dev.csv

Data

The assignment’s development data can be found inside data/dev.


GitHub

View Github




How to pass a parameter to a symfony 5 form

Path issue with passing a command from Autohotkey to PowerShell