in reply to Re: regex is not working as I intended
in thread regex is not working as I intended

my $regex = qr/^['"]?(.*?)['"]?$/;

Note that this regex will also match oddballs like  q{'Now is the time} and  q{'Now is the time"}


Give a man a fish:  <%-{-{-{-<