parameters: (self, rhs)
docstring: Check to see if rhs matches regular expression pattern.
  
          Returns:
              bool
docstring_summary: Check to see if rhs matches regular expression pattern.
docstring_tokens: Check to see if rhs matches regular expression pattern .
function: def equals(self, rhs):
          """Check to see if rhs matches regular expression pattern.
  
          Returns:
              bool
          """
  
          try:
              return self.regex.search(rhs) is not None
          except Exception:
              return False
function_tokens: def equals ( self , rhs ) : try : return self . regex . search ( rhs ) is not None except Exception : return False