title: regex to match two words with dynamic word in between them in a string
body: <p>I have a input string like given below and this string can be with spaces  and without spaces as well.</p>
  
  <p>Secondly, 666666 is dynamic string which is present in between 80000123456 and SYDNEY BAKERS and it could be any other string as well. Its dynamic.</p>
  
  <p>Input string</p>
  
  <pre><code>ABCD DEF++80000123456 666666 SYDNEY BAKERS 0000000 22222 333333
  </code></pre>
  
  <p>I want to create an regex which could match my string holding values 80000123456 and SYDNEY BAKERS. And this info could be located at any point of string. Start, end or inbetween ..anywhere.</p>
  
  <p>I have tried this</p>
  
  <pre><code>/^.*?\b80000123456\b.*?\bSYDNEY BAKERS\b.*?$/m
  </code></pre>
  
  <p>But in this its matches like string 80000123456 and SYDNEY BAKERS could be present independtly at anywhere at the string. But In my case </p>
  
  <p>Pattern could be like this only</p>
  
  <pre><code>80000123456 666666(dynamic) SYDNEY BAKERS
  
  80000123456666666(dynamic)SYDNEY BAKERS
  </code></pre>
  
  <p>There must be an string in between 80000123456 and SYDNEY BAKERS</p>
  
  <p>Hope its explained ...</p>
  
  <p>Any suggestion on this please ?</p>