I have the following text
">UNWANTEDTEXT">APRODUCT</ProductCode>
I'm looking to build a regex statement with my desired result being the text
APRODUCT
The regex I have at the moment is this.
">(.*?)<\/ProductCode>
The problem I'm facing is that the same text pattern of "> occurs at the start... I need a way of telling the regex to only look at the last occurrence of the "> then pull the value between it and </ProductCode>