I have an string, let's say it is like below:
<div class="myClass"> Some Text. </div> <div class="otherClass"> Some Text. </div>
Now, I have to parse the div with myClass class name and replace some text (say, replace Text. with Content.)
How can I achieve this with regex? I can replace content of all the divs, but I need to replace the content of that particular div.
Any help will be highly appreciated.