title: Regex to check for new line
body: <p>I want to check if an if statement is on one line or the next line without a brace like so:</p>
  
  <pre><code>if (blah === blah)
      do something
  </code></pre>
  
  <p>or:</p>
  
  <pre><code>if (foo === foo) do something
  </code></pre>
  
  <p>The regex i have currently is </p>
  
  <pre><code>/\)(?!.*\{)/
  </code></pre>
  
  <p>But doesnt work. Anyone have any ideas?</p>
  
  <p>To elaborate the only If statement that would not be pulled by this regex is the following:</p>
  
  <pre><code>if (foo === bar)
  {
  </code></pre>