On Jul 13, 8:09 am, jonesharring...@gmail.com (Jennifer Jones Harrington) wrote: > How about... > > #!/usr/bin/perl > use warnings; > $_ = "data: \"this is a string\" more: \"this is another\""; > s/(\w+)\s/$1 /g; > print "$_\n"; > > It prints: > > data: "this is a string" more: "this is another" >
Neat. Using the \K construct available in 5.10, you can even eliminate the need for the capture: s/ \w+ \K \s / /gx; -- Charles DeRykus s/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/