Apologies for the terrible title, i don't know how to express this in short form.
I have a string containing html (text, some
You should avoid using the first
[\s\S] here. To get what you need, you may want to proceed within the same opening tag. That is implicitly done when matching everything except