Answer the question
In order to leave comments, you need to log in
How to cut a tag leaving its contents?
There is a tag
Which regular expression can be used to get the result<sup><span lang="EN-US">4</span></sup>
<sup>4</sup>
Answer the question
In order to leave comments, you need to log in
/(.+)<span.*?>(.*)<\/span>(.+)/
https://regex101.com/r/tAAY5r/2
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question