Update: fixed a typo in the above code (asemi-colon instead of a colon in the split regex). Thanks to CountZero for pointing it out to me.for my $str (@strings) { my @array = split /:/, $str; print "$array[-1] \n"; }
In reply to Re: Regex for spliting
by Laurent_R
in thread Regex for spliting
by ravi45722
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |