in reply to Regex for spliting

Hi, you could split on a colon and get the last field of the resulting array (the item with the -1 index):
for my $str (@strings) { my @array = split /:/, $str; print "$array[-1] \n"; }
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.