import rerx = r"(?<![a-z0-9&])[a-z][0-9](?![a-z0-9&])"s = ".A3 S3- D4(SPACE) D5/ E9R E0&"print(re.findall(rx, s, re.I))
Standard input is empty
['A3', 'S3', 'D4', 'D5']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!