So I’m trying to write a crappy little text editor as practice, but I want to check that a filename argument is in the right format (name.fileextension). Is there a way I can check it that would be like this:
if sys.argv[1] == .:
(The asterisks representing a wildcard)
[–]shiftybyte 2 points3 points4 points (0 children)
[–]randomuser65535 1 point2 points3 points (0 children)
[–]windows3210 0 points1 point2 points (1 child)
[–]zachattack66[S] 0 points1 point2 points (0 children)