title: Match only the first occurrence of a phrase
body: <p>I have the following Json:</p>
  
  <pre><code>{"field1": "someText",
    "field2": "Text Again",
    "field3": "Text Again"}
  </code></pre>
  
  <p>I would need to match the first occurrence of any phrase starting with a capital letter (such as "Text Again", for example)</p>
  
  <p>I have written the following: </p>
  
  <pre><code>("[A-Za-z]+\s[A-Za-z]+")
  </code></pre>
  
  <p>It does work fine when testing with <a href="https://regex101.com/" rel="nofollow">https://regex101.com/</a>, for instance. However, it does not seem to correctly function as part of the usage of <a href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.ReplaceTextWithMapping/index.html" rel="nofollow">ReplaceTextWithMapping</a> (Apache NiFi). Is the regex incorrect? </p>
  
  <p>Thank you for your help</p>