in reply to Re^2: Regex keep matching the last possible match (but should get all)
in thread Regex keep matching the last possible match (but should get all)
Your example is far more restricted because a character in \D (a non-digit) can never be matched by a character in \d (a digit) and vice-versa.
This is why I suggested that you could use [^<]+ for characters within tags or [^>]+ for characters outside of tags. Both will only match normal characters and not closing (or opening) a tag.
|
|---|