Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- pattern = r"\d*"
- char = "2"
- if re.match(pattern, char):
- print("yes")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement