fork download
  1. import re
  2. rx = r"(?<![a-z0-9&])[a-z][0-9](?![a-z0-9&])"
  3. s = ".A3 S3- D4(SPACE) D5/ E9R E0&"
  4. print(re.findall(rx, s, re.I))
  5.  
Success #stdin #stdout 0.04s 9708KB
stdin
Standard input is empty
stdout
['A3', 'S3', 'D4', 'D5']