import os,re
def test():
list = re.findall(r'(255\.){2}','255.255.252.255.255.12')
print list
if __name__ == '__main__':
test()
the output :“['255.', '255.']”
why not 【255.255,255.255】 ?
the mactch object should is "255.255"
How can i get the correct output result?