Match length

Report a typo

Take a look at the piece of code below. It contains a template. Finish the code by reading a string from the input, calling the match() function and printing the length of the matching substring. If no match is found, output 0.

Write a program in Python 3
import re

template = r'are you ready??.?.?'
___

Create a free account to access the full topic