fork download
  1. import re
  2.  
  3. s4 = """
  4. ddddddhhhhhhf jjjjjj 111.222.33.444 dddddd ddddddddddd
  5. ccccccccccc
  6. xxxxxxxxxx xxxxxxxxxj kkkkkk kkkkkk xxxxx111.222.888.444yyyy
  7. xxxxxxxxxx xxxxxxxxxj kkkkkk kkkkkk xxxxx111.555.888.444yyyy
  8. dddddd jjjjjjj 333.222.33.444 111.222.33.444 jjjjjjjjjjjj
  9. """
  10. regex = "\d+\.\d+\.\d+\.\d+"
  11. print(re.findall(regex, s4[s4.find("cccccc") + 6:]))
Success #stdin #stdout 0.02s 27712KB
stdin
Standard input is empty
stdout
['111.222.888.444', '111.555.888.444', '333.222.33.444', '111.222.33.444']