fork download
  1. import re
  2. files = b'commit 7cc9c8ac247f2c139c37081aef091b78c6d51011\nAuthor: blahblah <blahblah@gmail.com>\nDate: Wed Oct 17 18:46:37 2018 +0800\n\n test subprocess output\n\n:000000 100644 0000000... e69de29... A\t123.sql\n:000000 100644 0000000... 617f0a5... A\tabc.sqlt\n:000000 100644 0000000... e69de29... A\ttestFile1\n:000000 100644 0000000... e69de29... A\txyz.sql\n'
  3. print(re.findall(rb'\w+\.sql', files))
Success #stdin #stdout 0.03s 27744KB
stdin
Standard input is empty
stdout
[b'123.sql', b'abc.sql', b'xyz.sql']