Is it possible to extract the nth match in a string of single-quoted words?
use strict; use warnings; my $string1 = \"\'I want to\' \'ex
See this question: How do I save matched parts of a regex in Perl? and this answer (the /g switch is the trick)