fork(1) download
  1. import re
  2. pat = r'"[^"]*(http.*?\.(?:jpg|bmp))[^"]*"'
  3. reg = re.compile(pat)
  4. aa = '"http:afd/aa.bmp" :tt: "kkkk" ++, "http--test--http:kk/bb.jpg"'
  5. print reg.findall(aa)
Success #stdin #stdout 0s 23304KB
stdin
Standard input is empty
stdout
['http:afd/aa.bmp', 'http:kk/bb.jpg']