probably an alternation like this
could help you.# perl -we '$x="somestring 12345 {ICMP}";$x=~/(.+({TCP}|{ICMP}))/ && p +rint "$1\n"' somestring 12345 {ICMP}
In reply to Re: Variable Length Parsing
by tos
in thread Variable Length Parsing
by ACiD
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |