title: Lowercase all text except elements in a list
body: <p>I have a text like this: <code>s = &quot;I am Enrolled in a course, MPhil since 2014. I LOVE this SO MuCH.&quot;</code></p>
  <p>And a list of words <code>list = [&quot;MPhil&quot;, &quot;MuCH&quot;]</code></p>
  <p>I am looking for a regex code that is able to lowercase all the text except the elements of the list.</p>
  <p>I found this regex solution that is able to lowercase all except the words between <code>''</code>:</p>
  <p><code>s = re.sub(r&quot;\b(?&lt;!')(\w+)(?!')\b&quot;, lambda match: match.group(1).lower(), s)</code></p>
  <p>But I don't know how to turn it into my case.</p>
  <p>I tried to split the text and check if it's from the list or not but I didn't found it really practical.</p>
  <p>If someone could give me a hint or suggest me something I'll be thankful</p>