That's exactly what I was doing. I will give substr a shot.
Thanks, -Chris Brizzell -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of William Fisher Sent: Friday, December 04, 2009 12:06 PM To: InterMapper Discussion Subject: Re: [IM-Talk] Parsing Numerical String On 12/4/09 11:44 AM, Christopher Brizzell wrote: > I receive from this device, on this particular oid, a string of 0s and > 1s which are essentially flags for a given state of the device. > > For some reason I am only able to access the first 9 digits of this > string, after that Intermapper tells me NotFound. > > Perhaps my regular expression is wrong, or perhaps there is an easier > way to do this? I'm guessing that you are using ${1} through ${9}. Our regular expression code only supports pattern "memory" for 9 items. You may want to use the substr("$val", pos, 1) function to dissect the binary string and test whether there is a 1 or 0 at a particular position. -- Bill Fisher Dartware, LLC ____________________________________________________________________ List archives: http://www.mail-archive.com/intermapper-talk%40list.dartware.com/ To unsubscribe: send email to: [email protected] ____________________________________________________________________ List archives: http://www.mail-archive.com/intermapper-talk%40list.dartware.com/ To unsubscribe: send email to: [email protected]
