2 Nov
2012
2 Nov
'12
06:51
On Fri, 2 Nov 2012 06:14, Marguerite Su wrote:
在 2012-11-1 下午11:37,"Guido Berhoerster"
写道: PS: Guido, is "s|\\..*$||" regression? I asked around on gtalk, but no one knows such regex style...can you explain it a little bit?
Not sure what you mean, it's just a BRE, the double backslash is needed there because rpmbuild also interprets backslashes.
What is BRE? [snip] BRE = Basic Regular Expression (e.g. "grep -G", or sed w/o "-r") ERE = Extended Regular Expression (e.g. "grep -E" or "sed -r") PRE = Perl Regular Expression (e.g. "grep -P" or pcregrep)
and yes, in combination with rpmbuild that can be confusing (as already said: rpmbuild 'eats' single backslashes) -- Yamaban