$string = 'garbage validcommand 1234 221 garbage 999 213'; $string =~ m/validcommand\s+((\d+\s+)+)/; @args = split ' ',$1;
--
I'd like to be able to assign to an luser
In reply to Re: Parsing arguments with surrounding garbage.
by Albannach
in thread Parsing arguments with surrounding garbage.
by kschwab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |