title: How to match paragraphs containing a specific pattern with regex?
body: <p>I have the following paragraphs :</p>
  
  <pre><code>This is paragraph #1
  New-York, London, Paris, Berlin
  Some other text
  End of paragraph
  
  This is paragraph #2
  London, Paris
  End of paragraph
  
  This is paragraph #3
  New-York, Paris, Berlin
  Some other text
  End of paragraph
  
  This is paragraph #4
  End of paragraph
  
  This is paragraph #5
  Paris, Berlin
  Some other text
  End of paragraph
  </code></pre>
  
  <p>How can I, with a regex, match the paragraphs containing e.g. New-York (#1 and #3) or London (#1, #2) ? or even New-York AND Berlin (#1, #3) ?</p>
  
  <p>I have found an answer in S.O. </p>
  
  <p><a href="https://stackoverflow.com/questions/18568105/how-match-a-paragraph-using-regex">How match a paragraph using regex</a></p>
  
  <p>which allows me to match the paragraphs (all the text between two blank lines).</p>
  
  <p>But I cannot figure (my regex skills are… limited) how to match the paragraphs containing a specific pattern, and only those paragraphs.</p>
  
  <p>Thanks in advance for your help</p>
  
  <p>NB : the idea is to use the answer in the Editorial IOS app to fold the answers NOT containing the pattern.</p>