fork download
  1. import re
  2. source = 'mystring/1234567890 hello world mystring/2345678901 hello'
  3. print(re.findall(r"(?<=\bmystring/)\d{10}(?!\S)",source))
Success #stdin #stdout 0.02s 27712KB
stdin
Standard input is empty
stdout
['1234567890', '2345678901']