fork download
  1. import re
  2.  
  3. pattern = r"\bInfo:\s*(.*?)\.(?:Call|Avbl)\b"
  4.  
  5. print(re.search(pattern, "Info:Somestring-103409115825.Call").group(1))
  6. print(re.search(pattern, "Info: BIL*ONL*00003.Avbl").group(1))
  7.  
Success #stdin #stdout 0.03s 9444KB
stdin
Standard input is empty
stdout
Somestring-103409115825
BIL*ONL*00003