A great site for testing Regex is regex101.com.
Try this:
(<h3.*>)(\w[^<]+)(<.+>)(</h3>)
The section [^<]+ tells it to take anything that is NOT a < whereas a . will keep going and take anything until it gets to the </tag> before the </h3>
Of course, you can do what you want with the grouping. I just use it on that site to better see if each section is doing what I want.
|