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  `-

Attachment: signature.asc
Description: PGP signature

Reply via email to