Display div if text found, hide otherwise

Display div if text found, hide otherwise

Hi, looking for script to

search for a specific text string in div1

if text is found set div2 style to display:block;

else set div2 style to display: none;

<div id="div1">Contains or does not contain specific text</div>

<div id="div2"></div>  style="display: block;"  or  display:none;

Thanks!