Help for this page

Select Code to Download


  1. or download this
    my $string = qw!"This is \"data\""!;
    
  2. or download this
    $string =~ /"((?:\\"|[^"])*)"/;
    
  3. or download this
    $string =~ /"           # first quote
                 (          # capture to $1
    ...
                   )*       #   end grouping (zero or more of above)
                 )          # end capture
                "/x;        # last quote
    
  4. or download this
    $string =~ /"((?:\\["\\]|[^"])*)"/;