Week 3 – Regular Expressions Post author:Devendra Kumar Post published: Post comments:0 Comments using python to interact with the operating system week 3 answers Practice Quiz: Regular Expressions 1. When using regular expressions, which of the following expressions uses a reserved character that can represent any single character? Answers re.findall(fu$, text)re.findall(f*n, text)re.findall(^un, text)re.findall(f.n, text) 2. Which of the following is NOT a function of the Python regex module? Answers re.grep()re.match()re.search()re.findall() 3. The circumflex [^] and the dollar sign [$] are anchor characters. What do these anchor characters do in regex? Answers Match the start and end of a word.Match the start and end of a lineExclude everything between two anchor charactersRepresent any number and any letter character, respectively 4. When using regex, some characters represent particular types of characters. Some examples are the dollar sign, the circumflex, and the dot wildcard. What are these characters collectively known as? Answers Special charactersAnchor charactersLiteral charactersWildcard characters 5. What is grep? Answers An operating systemA command for parsing strings in PythonA command-line regex toolA type of special character Next Please Share This Share this content Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Devendra Kumar Project Management Apprentice at Google You Might Also Like Week 1 – Empathize with the user and define the user problem Week 4 – Leadership And Influencing Skills – Shuffle Q/A 4 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.