Fill in the blanks to create a pattern that matches strings that contain 3 characters, out of which the last character is an exc | Sololearn: Learn to code for FREE!

0

Fill in the blanks to create a pattern that matches strings that contain 3 characters, out of which the last character is an exc

can you help me

6/9/2017 8:53:10 AM

R.kishore

30 Answers

New Answer

+4

the answer is r

+4

answer is r"..!$"

+4

+3

You need to match two "any character", followed by an exclamation mark. In regular expressions, "any character" is matched by using a dot. And the exclamation mark is a regular character, so you match it using... an exclamation mark :) So you are looking for: ..!

+3

str = r "I am \r\a\w!"

+2

ill in the blanks to create a pattern that matches strings that contain 3 characters, out of which the last character is an exclamation mark. answer is r"..!$"

+1

ans is r

+1

0

Sounds difficult and is difficult, sorry

0

0

Helpful

0

Fill in the blanks to match strings that are not entirely composed of digits. import re pattern = r"[ ^ 0-9 ] " m = re.search(pattern, "Hi there!")

0

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

0

r"(42)+$"

0

It's answer is r"..!$"

0

answer r"..!$"

0

Fill in the blanks to match strings that are not entirely composed od digits

0

Is this answer correct? I fill ! in the blanks but it show false.

0

str = r "I am \r\a\w!"

0