fork download
  1. import re
  2. s = """MicroAlgae 7.5
  3. AlgaeSerum 6.5
  4. Algae 1.5"""
  5. m = re.search(r'\bAlgae\s+([0-9.]+)', s)
  6. if m:
  7. print(m.group(1))
Success #stdin #stdout 0s 9024KB
stdin
Standard input is empty
stdout
1.5