Puddinq.com sharing knowledge

PHPStorm – remove div with class

PHPStorm - remove div with class

In a search and replace project we had to remove one div from 1000+ static html pages. We knew the id (container) and class (nav) it had and the class of the div (class is fullWithBlock) that followed that specific div on every page

(<div id=\'container\' class=\'nav\'>[.\s\S]*?)(?=(<div class='fullWidthBlock))