Syntactic Confectionery Delight | |
PerlMonks |
Re^2: regex is not working as I intendedby AnomalousMonk (Archbishop) |
on Jan 19, 2018 at 03:33 UTC ( [id://1207498]=note: print w/replies, xml ) | Need Help?? |
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: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|