in reply to Re: Unterminated \g... pattern in regex behaving badly on Windows
in thread Unterminated \g... pattern in regex behaving badly on Windows
You could also quotemeta the whole string. Then there's no need to manually escape the parenthesis:
qr/\QCannot find directory(ies): $bad_gitdir\E/or maybe even
qr/ \QCannot find directory(ies): $bad_gitdir\E /xms(The \E terminates the escaping - in case you want to add something else later on.)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Unterminated \g... pattern in regex behaving badly on Windows
by jkeenan1 (Deacon) on Nov 16, 2016 at 15:27 UTC |