in reply to Re: Re: Yet another problem
in thread Rewritting SQL table definition

s|\(Y,N,|\('Y','N',|;

should do it safely, unless you expect to find spaces between these characters (then you must add some \b* in some places).