Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    push @records, map {[m/(\w+:)/, m/(?<=:|,)\s([^,]*,?)/g]} @strings;
    
    print "@$_\n" for @records;
    
  2. or download this
    A: Gold, Black, Purple, Blue, Red     
    B: Black, Neon Pink, Neon Yellow, Neon Green, Neon Purple, Red, White,
    + Neon Orange, Navy