user image

Preeti Tripathi

Job Interview Skills
English
2 years ago

67. Create a program to match strings containing the letter "a" and 4 to 8 "bs."

user image

Abhishek Mishra

2 years ago

Here, we may compare regex patterns using Python's re package.import redef match_text(txt_data): pattern = 'ab{4,8}' if re.search(pattern, txt_data): #search for pattern in txt_data

Recent Doubts

Close [x]