fork(1) download
  1. import re
  2. text = "(30123:424302) 123 #4324:#34123"
  3. print(re.findall(r"(?<![#\d])\d+", text))
Success #stdin #stdout 0.03s 9612KB
stdin
Standard input is empty
stdout
['30123', '424302', '123']