You are viewing a plain text version of this content. The canonical link for it is here.
Posted to regexp-user@jakarta.apache.org by Sarika Inamdar <si...@cisco.com> on 2003/06/06 07:22:33 UTC

Need help in ORO regexp

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

---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-user-help@jakarta.apache.org