input: Write a function to extract the video id from a URL or data string.
  assert findvid("http://www.tv4play.se/program/xyz?video_id=12345", "") == "12345"
  assert findvid("http://www.tv4play.se/program/xyz-12345", "") == "12345"
  assert findvid("http://www.tv4play.se/program/xyz", '{"vid":"67890",}') == "67890"
output: def findvid(url, data):
      import re
      # Try to extract from URL first
      match = re.search(r'video_id=(\d+)', url)
      if match:
          return match.group(1)
      match = re.search(r'-\d+', url)
      if match:
          return match.group(0).strip('-')
      # Try to extract from data string
      match = re.search(r'"vid":"(\d+)"', data)
      if match:
          return match.group(1)
      return None