title: Partial regex results in R
body: <p>Would like to know the error while using <code>str_replace_all</code> while doing a transformation on a string:</p>
  
  <pre><code>abc &lt;- "Good Product ...but it's darken the skin tone..why...?"
  </code></pre>
  
  <p>I would like to do an additional manipulation in order to enable convert it to something like below, before running sentence tokenization using quanteda:</p>
  
  <pre><code>abc_new &lt;- "Good Product. But it's darken the skin tone. Why?"
  </code></pre>
  
  <p>I am using the following regex to enable this:</p>
  
  <pre><code>str_replace_all(abc,"\\.{2,15}[a-z]{1}", paste(".", toupper(str_extract_all(str_extract_all(abc,"\\.{2,15}[a-z]{1}"),"[a-z]{1}")[[1]])[[1]], collapse = " "))
  </code></pre>
  
  <p>However this throws: "Good Product. <strong>C</strong>ut it's darken the skin tone. <strong>C</strong>hy...?"</p>
  
  <p>Can someone suggest a solution for this?</p>