title: Java regex replaceAll not working
body: <p>regex not working as wanted</p>
  
  <p>Code example:</p>
  
  <pre><code>widgetCSS = "#widgetpuffimg{width:100%;position:relative;display:block;background:url(/images/small-banner/Dog-Activity-BXP135285s.jpg) no-repeat 50% 0; height:220px;} 
  
  someothertext #widgetpuffimg{width:100%;position:relative;display:block;}"
  
  newWidgetCSS = widgetCSS.replaceAll("#widgetpuffimg\\{(.*?)\\}","");
  </code></pre>
  
  <p>I want all occurrences in the string that match the pattern "#widgetpuffimg{anycharacters}" to be replaced by nothing</p>
  
  <p>Resulting in newWidgetCSS = someothertext</p>