Re: Another regex puzzle....

2001-07-25 Thread Jeff 'japhy/Marillion' Pinyan
On Jul 25, Hamish Whittal said: >%CardType% .1.3.6.1.4.1.45.1.6.3.3.1.1.5 >%CardSlotNum% =calc=CardType/3.([0-9]*).0/ >if ( /^%([a-zA-Z]*)%[\s\t]*[\=calc\=([a-zA-Z]+)\/(.*)\/|(\.[0-9]*)]/ ) { I'm afraid you're trying to be a bit too specific. If you let yourself slip in

Another regex puzzle....

2001-07-25 Thread Hamish Whittal
Hello all, here I go again with another reegex problem. I have the following in a conf file: %CardType% .1.3.6.1.4.1.45.1.6.3.3.1.1.5 %CardSlotNum% =calc=CardType/3.([0-9]*).0/ Now what I'm wanting to do is get the card type (using SNMP). Then to calculate the slot numbe