- or download this
/(?<=\p{Alpha}),(?=\p{Alpha})/
- or download this
while( $line =~ /,/g ) {
print "Matched a comma.\n";
}
- or download this
while( $line =~ m/(?:^|,)"([\p{Alpha}\s]+)"(?=,|$)/g ) {
print "$1\n";
}
- or download this
print "$_\n" for $line =~ m/(?:^|,)"([\p{Alpha}\s]+)"(?=,|$)/g;