Regex Concepts
✕Basic Regex Practice
Question 1 of 2
- Write regex to match the following patterns: - cat in any sentence. - Digit in a sentence - Lowercase letter in a sentence - Five letter word in a sentence. - Word that starts with "a" and ends with "e". - Word ending with ing.
Intermediate Regex
Question 2 of 2
- Write regex to match the following patterns:
- Email address in a text.
- Date in formats
YYYY-MM-DD,YYYY/MM/DD,YYYYMMDDorYYYY.MM.DD. - Word that ends with ing.Only ensure but don't consider ing in match- Weights that have kg at end.Ensure kg but match weight only- Name of tags in the html document provided on dataset. Example:div,br,p- Website Name from url like: https://www.google.com, www.youtube.com - Hashtag in a social media post. - Phone number in formats:(+977) 456-7890,4567890,456-3456. - Mobile Number in formats:9843468713,984-3468-713or(+977)9843468713.
- Write regex to match the following patterns:
- Email address in a text.
- Date in formats
