title: How to fix "re.error: unterminated character set at position" in Python?
body: <p>I am currently programming a script to get lyrics from the website "<a href="https://www.lyrics.com" rel="nofollow noreferrer">www.lyrics.com</a>". I have this:</p>
  
  <pre><code>import os, string, re, requests
  
  print("Enter lyrics.com site:")
  url = input()
  
  lyrics_raw_html = requests.get(url + '.html')
  lyrics_raw = re.findall(r'&lt;pre id=\"lyric-body-text\" class=\"lyric-body wselect-cnt\" dir=\"ltr\" data-lang=\"en\"&gt;([^]+)&lt;\/pre&gt;', lyrics_raw_html.text)
  lyrics = re.sub(r'(&lt;.+&gt;)', '', lyrics_raw[0])
  
  print(lyrics)
  </code></pre>
  
  <p>and when I input a page (<a href="https://www.lyrics.com/lyric/5030218/Pink+Floyd/Daybreak.html" rel="nofollow noreferrer">this</a> page for example) I get this error:</p>
  
  <pre><code>File "C:\Users\MYNAMEHERE\AppData\Local\Programs\Python\Python37-32\lib\sre_parse.py", line 532, in _parse
  source.tell() - here)
  re.error: unterminated character set at position 91
  </code></pre>
  
  <p>It seems to be from my regex, but after some tinkering, I have no idea what the problem is. Any help would be nice!</p>
  
  <p>Thanks in advance.</p>