title: How do I do conditionals in regex?
body: <p>Say, I want to split a string on either "。」" or " 。" , but not twice on "。」"</p>
  
  <p>So for example:</p>
  
  <pre><code>s = "Something something。」 something something。 something。」that's great!"
  </code></pre>
  
  <p>I want to return</p>
  
  <pre><code>s = "Something something。」\n something something。\n something。」\nthat's great!"
  </code></pre>
  
  <p>I have trouble figuring how to split <code>。」</code> and not get <code>。\n」</code> or <code>。\n」\n</code></p>