Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Why does bhw*b match hills? Give two other words it might match. 2. Write a regular expression that captures the counts in sentences like

1. Why does \bh\w*\b match hills? Give two other words it might match.

2. Write a regular expression that captures the counts in sentences like The most popular baby name in 2018 was Claire with 18101 births.

3. Explain (or give code) how to use finditer, Match, and Match.start to find all indices where a given char appears in a string s.

4. Outside of the US, it is common to write dates in the form year.month.day, e.g., 2020.01.05 for January 05, 2020. Write a regular expression that matches a date written in this form.

5. Write a regular expression to capture only correct IPv4 addresses, e.g., it should match 174.17.6.152 but not 825.603.971.243. Capture each of the four numbers separately.

python

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Multidimensional Array Data Management In Databases

Authors: Florin Rusu

1st Edition

1638281483, 978-1638281481

More Books

Students also viewed these Databases questions

Question

Which listening behavior do I want to improve the most?

Answered: 1 week ago

Question

explain the need for human resource strategies in organisations

Answered: 1 week ago

Question

describe the stages involved in human resource planning

Answered: 1 week ago