fork(6) download
  1. import re
  2. line = "STARC-1.1.1.5 ConsCase WARNING Warning"
  3. m = re.search('^\S+',line)
  4. if m:
  5. print m.group(0)
Success #stdin #stdout 0s 9024KB
stdin
Standard input is empty
stdout
STARC-1.1.1.5