I'm trying to separate every single tag from a HTML source that I'm receiving.
It's a huge piece of code that I'm receiving and I'm trying to make it more 'readable', for a human analysis. This far I only made up to this RegEx code:
RegEx(<\w*>.*<\/\w*>)
But this get the beggining of the !DOCTYPE
tag and run 'till the </html>
.
And what I'm trying to do is to select each tag individually, independent of the type.
Also, I'm running this RegEx with JavaScript.
Any suggestions are very welcome :)