fork(1) download
  1. import re
  2.  
  3. rx = re.compile(r"\([^()\d]*\d[^()]*\)")
  4. s = "Some (Author) and (Author 2000)"
  5. print(rx.findall(s))
  6.  
Success #stdin #stdout 0.01s 27728KB
stdin
Standard input is empty
stdout
['(Author 2000)']