Say I have a string
\"3434.35353\"
and another string
\"3593\"
How do I make a single regular expression
use (?:|). replace with the string to make optional. I tested in python shell and got the following result:
(?:|)
>>> s = re.compile('python(?:3|)') >>> s re.compile('python(?:3|)') >>> re.match(s, 'python') >>> re.match(s, 'python3') ```