fork download
  1. import re
  2.  
  3. line=r'document.getElementById("URL_LABEL").innerHTML="<a name=\"link\" href=\"http://"+url+"\" target=\"blank\">"+url+"</a>"'
  4.  
  5. re_strings=re.compile(r""" "
  6. (?:
  7. \\.|
  8. [^\\"]
  9. )*
  10. "
  11. |
  12. '
  13. (?:
  14. [^\\']|
  15. \\.
  16. )*
  17. '
  18. """,re.VERBOSE);
  19.  
  20.  
  21. for s in re.finditer(re_strings,line):
  22. print(s.group(0))
Success #stdin #stdout 0.02s 5824KB
stdin
Standard input is empty
stdout
"URL_LABEL"
"<a name=\"link\" href=\"http://"
"\" target=\"blank\">"
"</a>"