fork download
  1. import re
  2. regex = r"([2-9]|\d\d+)"
  3. test_str = "-523"
  4. print(re.findall(regex, test_str))
Success #stdin #stdout 0.01s 9024KB
stdin
Standard input is empty
stdout
['5', '2', '3']