title: regex: find text inbetween space and specifictext which is filled with nonspace variable text inbetween
body: <p>I have the following case</p>
  
  <pre><code>kjhasd jh asdkhj jh skdj kjas dkjh XXXXXXXXENDoasd kjha sdkj asdkjh
  </code></pre>
  
  <p>Here <code>XXXXXXXX</code> is a variable text(without any spaces) but will have a space before it.
  SO i want to find the text <code>XXXXXXXXEND</code> how to do using regex</p>
  
  <p>I have tried  <code>.*END</code> </p>
  
  <p>It will find  <code>jh asdkhj jh skdj kjas dkjh XXXXXXXXEND</code></p>
  
  <p>which i dont want. i only want <code>XXXXXXXXEND</code></p>
  
  <p>Also kindly Note the text "kjhasd jh asdkhj jh skdj kjas dkjh: before <code>XXXXXXXXEND</code> is also not a fixed text, it also keeps varying. And also text after <code>XXXXXXXXEND</code> also keeps varying. </p>
  
  <p>Its the pattern <code>space + (no space text) + END</code> this is what i want to find.</p>
  
  <p>Because I have so many line and this keeps repeating. So using regex i can manipulate them easily.</p>