Need help in ORO regexp
"Sarika Inamdar " <[email protected]> Fri, 6 Jun 2003 10:52:33 +0530
| Newsgroups | gmane.comp.jakarta.regexp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi All, We have to match a particular XML string and trigger an action based on the match. The XML is of the following format : threshold12310.77.11.922003-06-05T06:20:00.171Z<name>cdfjdp01</name><ipa ddress>10.77.11.48</ipaddress><entity>Cisco CNS-PerfE</entity><version>dev</version><time>2003-06-05T06:20:00.172Z</ time>criticalcleared.1.3.6.1.2.1.2.2.1.10.31885616724LTE2000000000com.ci sco.das.MibCollector.MibCollector For the above XML, we need to remove the IP address ( 10.77.11.92) from the string. I tried lot of regexp combinations, but did not work. The regexp pattern : Threshold\d+?(\d+.\d+.\d+.\d+)\d+-.*Z is not giving the precise results . We end up getting something like 310.77.11.92200 We are using jakarata ORO 2.0.7 version. Please let me know which would be an accurate regexp for this ? Thanks, Sarika