Help for this page

Select Code to Download


  1. or download this
    use strict;
    my $line = join ",",
    ...
    my $re = qr/((?:[^"',]|"[^"]*"|'[^']*')+)/;
    
    print(">$_<\n") for $line =~ /$re/g;
    
  2. or download this
    >"completely quoted"<
    >not quoted<
    ...
    >quote 'and comma, inside " single' quote<
    >single quote "and comma, inside of ' double" quote<
    >last<
    
  3. or download this
    one,,three