Regex advice - replace reoccurring strings in javascript

Hi all,

Does anyone know how to use regex with javascript to replace a reoccurring pattern in a string?

e.g.
<5.01>KEEPTHISDATA</5.67><5.100>KEEPTHISDATATOO></5.500>

I have tried all kinds of replace patterns but I can't get it to work. The above example is just a simple cut down version of the string but the idea is there.

Thanks for everyones help as always :slight_smile:

Hi @bg1900 ,

What is the pattern? It’s always those 4 β€˜tags’?

Anything between a β€˜<β€˜ and β€˜>’ is what I am trying to remove.

Thanks!

worked it out! For those interested:

.replace(/<[^>]*>/g,',')