develooper Front page | perl.beginners | Postings from February 2002

clearing string (newbie) - resuming

From:
Dittrich G . Michael
Date:
February 12, 2002 06:37
Subject:
clearing string (newbie) - resuming
Message ID:
20020212143832.KXGD27460.mailoutvl21@[192.168.139.30]
Hi all!

i had a lot of feetback on my last post with really good stuff (I used for other purposes - please don't mind :), but there is still the one question: clear the string! - how?

the most solutions worked only for one digit in the end or tryed to filter the first pattern after the [:space:]...

....then let me pick together every kind of expresions there could be: (the "x" and "y" means variables)

..iso.3.6.1.4.1.318.x.x.x.x.x.x.0 = y

..iso.3.6.1.4.1.318.x.x.x.x.x.x.0 = "YYYYYY YYY YYYY"

..iso.3.6.1.4.1.318.x.x.x.x.x.x.0 = "YYY" hex:YY YY YY

..iso.3.6.1.4.1.318.x.x.x.x.x.x.0 = Timeticks: (y) yy:yy:yy.yy

..iso.3.6.1.4.1.318.x.x.x.x.x.0 = y
(shorter OID's like that are possible!!!)

- You see? I need only the "Y's"!

For BurnShell I got the solution, but I would relly do all this in perl!


I know it's tricky! I don't need the hole pice of the puzzle - only enough to crack this nut :)

Thanks in forward


Michael G. Dittrich


PS: the script is still not finished and the possibility is big, that there will be more different kind of expressions, but I hope I could show the mechanism of work of the hole bunch... :)
--
berlin.de - meine stadt im netz. Jetzt eigene eMail-adresse @berlin.de sichern!
http://www.berlin.de/home/MeineStadt/Anmeldung




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About