I'm parsing markup to match the inner text of tag elements using the following regex.
(?<=<*>)[^<]+(?=<[^>]*>)
I'd like to optimise this to remove matches on white space. eg: >space \n etc <
eg:
<div>
<div>TargetMatch</div>
</div>
Targeted Hits:
- TargetMatch
Actual Matchs:
- " "
- TargetMatch
Any ideas?
Slyi
Pattern:
>\s+<
Replacement:
><