Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] PCRE/NUL: pass NUL in for text, handle NUL out



On Jun 16,  7:41am, Stephane Chazelas wrote:
}
} Solution for now in zsh is to escape like:
} 
}    [[ $x =~ "\b\Q${word//\\E/\\E\\\\E\\Q}\E" ]]

Hmm, wouldn't "\b\Q${(b)word}\E" be sufficient there?  If fact if
you've applied ${(b)word} do you even need \E and \Q ?



Messages sorted by: Reverse Date, Date, Thread, Author