I have some XML which I want to extract via a javascript regular expression. An example of the XML is shown below:
<rules><and><gt propName="Unit" value="5" type="System.Int32"/><or><startsWith propName="DeviceType"/></or></and></rules>
I’m having problems extracting just the xml names “gt” and “startsWith”. For example, with the following expression
<(.+?)\s
I get:
“<rules><and><gt”
rather than just “gt”.
Can anyone supply the correct expression?