By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 3 Duplicates: 0 Warnings: 0
html | REGEXP_REPLACE(html, '<nav>[^<]*</nav>', '') |
---|---|
text1<nav>text2</nav>text3 | text1text3 |
text1<nav>text2</nav>text3<nav>text4</nav>text5 | text1text3text5 |
text1<no>text2</no>text3 | text1<no>text2</no>text3 |