I am trying to remove all lingering spaces between tags. Therefore, I am trying to select them using regex.
<span> </span> ^^^^^^^^
My regular expression is (?:>) +(?:<) . I am trying to exclude > and < from the selection using a non-capture group, but it doesn't seem to work.
For now, these two regular expressions seem to do the same:
With non-exciting groups: (?:>) +(?:<)
Without non-capture groups: > +<
I think my understanding of regex is not good enough, but I'm not sure. What is wrong here?
source share