title: regex match regardless of spacing
body: <p>I'm trying to replace an old function call with an updated function.</p>
  
  <p>I'm looking for something like this:</p>
  
  <p><code>$myvar         = myclass::getmyvar();</code></p>
  
  <p>However the tabs / spacing can vary wildly due to code formatting. How can I match for any number of tabs or spaces between the <code>$myvar</code> and the <code>= myclass::getmyvar();</code>? </p>
  
  <p>I've tried variations of something like this:</p>
  
  <p><code>$myvar[* \t]=[* ]myclass::getmyvar();</code></p>
  
  <p>without success.</p>
  
  <p>I'd like to pass it to a statement like the following:</p>
  
  <pre><code>grep -rl '$myvar[* \t]=[* ]myclass::getmyvar();' ./ | xargs sed -i 's/$myvar[* \t]=[* ]myclass::myvar();/$myvar = mynewclass::myvar();/g'
  </code></pre>
  
  <p>Is that the proper syntax, or should I be using egrep?</p>