Answers for "python regex exclude letters"

0

python regex exclude letters

import re
# let s be your string: if you want to search anything BUT letters
# use this regex: "[^A-Za-z]"
re.search("[^A-Za-z]", s)
Posted by: Guest on May-09-2022

Python Answers by Framework

Browse Popular Code Answers by Language