I need the regex to select this expression <h3 id="title1"> <a href="someURL" target="_blank" >Some Text and digits</a> </h3> Code (markup): and instead of title 1 there can be something like title2, title3 etc as well. Please help. Thanks.