A
A
Asikov Artur2019-02-18 16:02:15
Regular Expressions
Asikov Artur, 2019-02-18 16:02:15

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

1 answer(s)
D
Dmitry Belyaev, 2019-02-18
@Artur937

/(.+)<span.*?>(.*)<\/span>(.+)/
https://regex101.com/r/tAAY5r/2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question