in reply to regex to split on ' ', but skip spaces inside quotes
my @words= $string =~ /'[^']*'|\S+/g; my @words= $string =~ /'(?:\\.|[^\\']+)*'|\S+/gs; my @words= $string =~ /'(?:''|[^']+)*'|\S+/g; [download]
- tye