title: search/replace contains ‘x’ and does not contain ‘y'
body: <p>Does anyone know a way (regex search or plugin or anything other mac tools) i could search for a string i want to replace but only if another string is not on the same line.</p>
  
  <p>This is Html code and i would like to search all files in a project that contain string <code>&lt;button</code> and change it to <code>&lt;button type="button"</code> as long as it doesn't contain the string <code>type</code> on the same line?</p>
  
  <p>Currently using either sublime and atom but couldn't figure out how.</p>