title: regex match string followed by any word followed by string variable
body: <p>I have a predefined variable called probe_name, it is the 3rd word in the string. In the below example it will could be name1, name2 and name3 </p>
  
  <pre><code>list1 = [ 
  probe url name1 
  probe http name1 
  probe tcp name2 
  probe http name3 
  abc 123 xyz1 
  www 123 xyz2 ]
  </code></pre>
  
  <p>How would I match the lines that match the probe_name value in the list I have above?</p>
  
  <p>I want to first match the word "probe" and then need the regex to match any string of characters to follow and then need to match the last word as my probe_value.</p>
  
  <p>ex: </p>
  
  <pre><code>probe_name = [name1] 
  for line in list1: 
  if ("probe " "regex to match any second word " + probe_name) in line:   
  </code></pre>
  
  <p>what regex can I use to say match any string of characters as the 2nd word? </p>
  
  <p>I thought this would have worked but it doesn't:  </p>
  
  <pre><code>if ("probe .* $" + probe_name) in line:  
  </code></pre>