fork download
  1. import re
  2.  
  3. regex = r"\$[A-Z]+(?:-[A-Z]+)*\b"
  4. s = "VG Acquisition Has The Potential To Fly High $SPCE $STPK $VG-AC price is $0.88"
  5. print(re.findall(regex, s))
Success #stdin #stdout 0.03s 9468KB
stdin
Standard input is empty
stdout
['$SPCE', '$STPK', '$VG-AC']