Looking for specific strings

Report a typo

Write a program that will take user input. If it begins with a letter b and ends with a letter l, the program should print the matched output, or print No match otherwise. Note that user input can contain non-alphanumeric characters, newlines, and whitespaces. Make your program case-insensitive.

Sample Input 1:

base\nball ball

Sample Output 1:

base\nball ball
Write a program in Python 3
import re

string = input()
# your code here
___

Create a free account to access the full topic