Cover assignment of the coursera course Introduction to Data Science with python by Michigan university Regex cheat sheet should be used for better understang of the concept.
- groups in regex: For searching different groups of regex out of the data we use paranthesis () and write regex expression in them. for example: (?P\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}) (?P<user_name>\s[a-z]+\d{4}) (?P[.*?]) Here we have 3 groups of regular expression , we also used (?Pregex_expression) this is used to create a dcitionary with key=name and value=outputs according to the regex expression.