Looking for a solution to remove specific id attributes from an HTML string? Here's the scenario:
<div id="demo_..." class="menu">
You have the HTML code as a string and want to remove all id attributes starting with demo_. The desired result is:
<div class="menu">
While you know that regular expressions can help with this task, tackling special characters can be challenging. What should the regular expression look like to successfully replace all strings with this patter with an empty string?