fork download
  1. import re
  2. listofwords= "hello there i'd like to find *JDK? in this sentence"
  3. print(re.findall(r'\*\w+\?', listofwords))
  4.  
Success #stdin #stdout 0.02s 6956KB
stdin
Standard input is empty
stdout
['*JDK?']