title: Regex to match between words, if the closing word is absent
body: <p>I want to match specific parts (bold) in the following strings:</p>
  
  <ul>
  <li>\doc <strong>doc1,doc2</strong> </li>
  <li>\doc <strong>doc1,doc2</strong> \in filed1,field2 </li>
  <li>\doc
  <strong>doc1,doc2</strong> \in filed1,field2 \doc <strong>doc3,doc4</strong> \in field3,field4</li>
  </ul>
  
  <p>I came out with this regex <code>/\\doc(.*?)\\in/g</code>
  <a href="https://regex101.com/r/dV7mF4/1" rel="nofollow">https://regex101.com/r/dV7mF4/1</a></p>
  
  <p>But it doesn't match the first string <strong>doc1,doc2</strong>. What do I need to add to my regex to match all these strings above? </p>