fork download
  1. import re
  2. text = "^request^ #13#10#13#10^s100^GET http://f...content-available-to-author-only...k.com #13#10Host: http://f...content-available-to-author-only...k.com #13#10X-Online-Host: http://f...content-available-to-author-only...k.com #13#10X-Forward-Host: http://f...content-available-to-author-only...k.com #13#10Connection: Keep-Alive#13#10#13#10"
  3. match = re.search(r"\^s(\d+)\^", text)
  4. if match:
  5. print match.group(1)
  6. else:
  7. result = ""
Success #stdin #stdout 0.01s 9016KB
stdin
Standard input is empty
stdout
100