Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- phrase1 = "Simple String with some UPPercase in Between ends with?"
- phrase2 = "BIG STRING ALL CAPS ENDS WITH?"
- phrase3_a = "ALLCAPSSTRING NOTHING AT THE END OF STRING"
- phrase3_b = "Any String with ALL UPPERCASE (or not) but ends with!"
- phrase4 = "tttt"
- phrase=re.sub(r'[s]','',phrase)
- pattern_phrase1 = re.compile (r'[a-zA-Z0-9]?$')
- pattern_phrase2 = re.compile (r'[A-Z0-9]?$')
- pattern_phrase3 = re.compile (r'[A-Z]|[.!$]')
Add Comment
Please, Sign In to add comment