fork(1) download
  1. import re
  2.  
  3. regex = r'''
  4. (?i)
  5. \b
  6. (
  7. (?:
  8. [a-z] [\w-]+ :
  9. (?: /{1,3} | [a-z0-9%] )
  10. | www \d{0,3} [.]
  11. | [a-z0-9.\-]+ [.] [a-z]{2,4} /
  12. )
  13. (?:
  14. [^\s()<>]+ # This +
  15. | \(
  16. (
  17. [^\s()<>]
  18. | ( \( [^\s()<>]+ \) )
  19. )*
  20. \)
  21. )+ # and this +
  22. (?:
  23. \(
  24. (
  25. [^\s()<>]
  26. | ( \( [^\s()<>]+ \) )
  27. )*
  28. \)
  29. | [^\s`!()\[\]{};:'".,<>?«»“”‘’]
  30. )
  31. )
  32. '''
  33.  
  34. print(re.search(regex, 'www.' + '['*30 + '(', flags=re.VERBOSE))
Time limit exceeded #stdin #stdout 5s 6848KB
stdin
Standard input is empty
stdout
Standard output is empty