Trancemission
Technical User
Hi
I am attempting to form a split on lines of code with 2 sperators, one is not a problem it is the good old colon ( : )
The second is suqare brackets with a 2 inside ( [2] )
I am having trouble specifying both seperators at the same time:
#looping hrought filehandle LOGFILE......
($oid,$traptype,$trapdesc,$aux) = split(/[:,\[2\]]/);
All line follow the same format, a sample would be:
private.product.firewall:AtackAlarm[2]Trap information:Random info
Elements I want selected are in bold
Many Thanks
Trancemission
=============
If it's logical, it'll work!
I am attempting to form a split on lines of code with 2 sperators, one is not a problem it is the good old colon ( : )
The second is suqare brackets with a 2 inside ( [2] )
I am having trouble specifying both seperators at the same time:
#looping hrought filehandle LOGFILE......
($oid,$traptype,$trapdesc,$aux) = split(/[:,\[2\]]/);
All line follow the same format, a sample would be:
private.product.firewall:AtackAlarm[2]Trap information:Random info
Elements I want selected are in bold
Many Thanks
Trancemission
=============
If it's logical, it'll work!