'?' are probably leftovers from ['\'']?
Corrected version:
perl -pe 's/(^|\s|=|'\'')-[AbBFgG]('\''|\s|$)/$1$2/g' | \
perl -pe 's/(^|\s|=)['\'']['\''](\s|$)/$1$2/g' | \
On Thu, Dec 31, 2015, at 16:44, Mattia Rizzolo wrote:
> On Thu, Dec 31, 2015 at 03:01:51PM +0100, Ondřej Surý wrote:
> > I think the regex has to be split in two:
> >
> > perl -pe 's/(^|\s|=|'\'')?-[AbBFgG]?('\''|\s|$)/$1$2/g' | \
> > perl -pe 's/(^|\s|=)['\'']['\''](\s|$)/$1$2/g' | \
> >
> > which works for me fine
>
> Looks sane, I could do it, but just a question:
> why did you add the ? after the [AbBFgG] ?
>
> --
> regards,
> Mattia Rizzolo
>
> GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`.
> more about me: http://mapreri.org : :' :
> Launchpad user: https://launchpad.net/~mapreri `. `'`
> Debian QA page: https://qa.debian.org/developer.php?login=mattia `-
> Email had 1 attachment:
> + signature.asc
> 1k (application/pgp-signature)
--
Ondřej Surý <[email protected]>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server