import relistofwords= "hello there i'd like to find *JDK? in this sentence"print(re.findall(r'\*\w+\?', listofwords))
Standard input is empty
['*JDK?']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!