fork download
  1. import re
  2. line = "https://w...content-available-to-author-only...t.com"
  3. lines = "https://w...content-available-to-author-only...t.com https://thisisatestt https://w...content-available-to-author-only...w.dontmatchme"
  4.  
  5. var=len(line)-len('https://')
  6. pattern = rf"\bhttps://\S{{{var}}}(?!\S)"
  7.  
  8. print(re.findall(pattern, lines))
Success #stdin #stdout 0.02s 9500KB
stdin
Standard input is empty
stdout
['https://w...content-available-to-author-only...t.com', 'https://thisisatestt']