title: How do you to create a RegEx to match a word only if another word appears before it in the sentence?
body: <p>I need to create a RegEx (that works in Eclipse's search/replace) that will match a group of letters only if a different match occurs anywhere prior in the same sentence.</p>
  
  <p>Specifically, I need to match <strong>.css</strong> only if it occurs in the same line that includes <strong>jsSrc</strong>.</p>
  
  <p>Eclipse doesn't support indefinite lookbehinds.</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;link rel="stylesheet" type="text/css" href="&lt;% { out.print( jsSrc( request, "/builder/builder.css" /&gt;
  </code></pre>
  
  <p>Attempted regEx:</p>
  
  <pre><code>\.css(?&lt;=jsSrc)
  </code></pre>
  
  <p>Does not produce a match of <strong>.css</strong></p>