i\'m refactoring code in order to add object orientation and am just testing the code.
pattern = r\"((([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])[ (\\[]?(\\.|dot)
When calling an instance method, you don't pass the instance explicitly
ie.
self.ip = self.getip(pattern, line)