Author: jingjie28 | Posted on: 5/19/2009 7:44:55 PM | Views : 312

Hi everyone i heard of Regex and using the MatchCollection to get specific data. I want to know something, if let say, i got this object string like:
input string:Object ID: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.3 INTEGER: 269 Object ID: .1.3.6.1.2.1.1.1.0 STRING: ENVIROMUX-SEMS-16
i can easily take out any values using MatchCollection but what if my input string is always not constant? like sometimes it maybe:
Object ID: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.3 INTEGER: 269 Object ID: .1.3.6.1.2.1.1.1.0 STRING: ENVIROMUX-SEMS-16
or sometimes it may be:
Object ID: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.3 INTEGER: 269 Object ID: .1.3.6.1.2.1.1.1.0 STRING: ENVIROMUX-SEMS-16 Object ID: .1.3.6.1.4.1.3699.1.1.2.1.5.1.1.7.3 INTEGER: 269 Object ID: .1.3.6.1.2.1.1.1.0 STRING: ENVIROMUX-SEMS-16
what should i do? is like the input string will keep changing...
...

Go to the complete details ...