old_contents: """
  This module is responsible for embedding youtube videos.
  
  Like with most of my embeddable providers, portions of the code (regexes in
  particular) come from the Reddit Enhancement Suite
  """
  
  import re
  
  youtube_regex = re.compile(r'^https?:\/\/(?:youtu\.be|(?:www\.|m\.)?youtube\.com)\/?(?:watch|embed)?(?:.*\?v=|v\/|\/)([\w-]+)', re.IGNORECASE)
  
  cache = 0
  
  def embed(submission):
      match = youtube_regex.match(submission.url)
      if match is not None:
          return {
              'kind' : 'IFRAME',
              'url' : "https://www.youtube.com/embed/%s" % match.group(1)
          }
      return None
  
new_contents: """
  This module is responsible for embedding youtube videos.
  
  Like with most of my embeddable providers, portions of the code (regexes in
  particular) come from the Reddit Enhancement Suite
  """
  
  import re
  
  youtube_regex = re.compile(r'^https?://(?:youtu\.be|(?:www\.|m\.)?youtube\.com)/?(?:watch|embed)?(?:.*\?v=|v/|/)([\w-]+)', re.IGNORECASE)
  
  cache = 0
  
  def embed(submission):
      match = youtube_regex.match(submission.url)
      if match is not None:
          return {
              'kind' : 'IFRAME',
              'url' : "https://www.youtube.com/embed/%s" % match.group(1)
          }
      return None
  
subject: fix excessive escaping in youtube regex