The bottom line above is from a “View Source Code” page and the top line is from the Chrome Developer Tools Source view. The RegEx below matches the bottom tags, which contain a series of spaces, but not the top tags, which enclose just empty whitespace. See this on the Regex Tester at https://regex101.com/r/P9dUP9/2
How could I make the Regex also match the top line, and how can I tell the difference between the two kinds of whitespace on the screen without copying and pasting both of them into a text editor?
A grateful Regex newbie thanks you and because of the time-zone difference I will not be able to check and acknowledge answers for another 12 hours.