Create a pattern that match the string of 3 whoes last letter is exclamation mark | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Create a pattern that match the string of 3 whoes last letter is exclamation mark

1st Dec 2016, 6:36 PM
Ayush Gupta
Ayush Gupta - avatar
2 Answers
0
import re re.match(r"..!",theStringYouWantToMatch)
4th Dec 2016, 9:06 AM
H4CK3R
0
..!
4th Dec 2016, 9:53 AM
Mojtapa Eltayip Abdelrhman
Mojtapa Eltayip Abdelrhman - avatar