fork(1) download
  1. import re
  2.  
  3. testString = "0.714285714285714285714285714285714285714285"
  4. print(re.search(r"(\d)(\d+?)(?=\1)", testString).group(0))
Success #stdin #stdout 0.01s 9016KB
stdin
Standard input is empty
stdout
714285