I am new to regular expressions and need to write one that will pull certain data out of an XML page. For instance,
<name>Number of test runs</name>
<value>2</value>
The only number I need to pull is the 2. I want it to look at the XML tag Name so I don't pull from any other numbers on the page. Below is what I have but I am matching all the content instead of just the 2. Any help would be appreciative.
Current Regular Expression:
/<name>Number of Failed BGPs</name>\n<value>(.+?)/