I'm trying write the code to check the version format in regex. Is this the correct way to check the format
v0.0.0 -> \w\d[0-9].\d[0-9].\d[0-9]
Also, how do I compare using python and selenium web driver?
    def version(self):
    version = self.getElement("id","version")
    match = re.search(r'\w\d\.\d\.\d', version)
    if match:
        version = match.group()
        return True
    return False
 
     
    