title: How to split strings separated by many semicolons in R?
body: <p>My desire is to know the length of a certain text separated by <code>;</code> which comes after any number. In the text named <code>txt</code> below, I don't want to consider the first two semicolons. To get the length, the <code>;</code> comes after <code>6</code>, <code>5</code> should be considered. I mean the code should <strong>lookbehind some number(s)</strong> to consider the appropriate <code>;</code>.</p>
  
  <pre><code>library(stringr)
  txt &lt;- "A;B; dd (2020) text  pp. 805-806; Mining; exercise (1999), ee, p-123-125; F;G;H text, (2017) kk"
  </code></pre>
  
  <p><code>lenghths(strsplit(txt,";"))</code> gives me <code>8</code>. In my case, however, it should be <code>3</code>. Any help is highly appreciated.</p>