I have a piece of text that I need to match anything between <latex
and </latex>
but not the text and an equivalent quantity of
Which given has the same divisor of <latex>5</latex> and an equivalent quantity of <latex>(5 + 2) \div 5</latex>?
I've tried with the regex \<\;(latex).+(latex)\>\;([^\s])
but it doesn't stop until the last </latex>
in the line.