title: Regex for keywords
body: <p>How can I write a Regex to represent certain keywords without any letter/number following or preceding them? (symbols and spaces are optional)</p>
  
  <p>I tried to write this, but it's doesn't seem to work:</p>
  
  <pre><code>let resWord = "[class|function|static|this|return]"
  let keyword = new Regex("[^[^a-zA-Z0-9]]"+resWord+"[^[a-zA-Z0-9]$]")
  </code></pre>
  
  <p>I'm new to Regex, so please excuse me if it's a stupid question :)</p>