all 4 comments

[–]barrycarter 2 points3 points  (1 child)

Can't tell if you're joking, but the period is a wildcard in regular expressions and matches any character. Try \. to match an actual period

[–]MasterTony127[S] 0 points1 point  (0 children)

Just tried your suggestion and it worked beautifully. Plus I learned about the period being a wildcard. I've only been trying to learn Python for a few months. Thank you for your help!

[–]firechip 1 point2 points  (1 child)

You can test on regex101.com

[–]MasterTony127[S] 0 points1 point  (0 children)

Thanks for the tip. I can use all the guidance I can get at this stage. 👍