Started on pattern recognition using regex