Mailinglist Archive: opensuse-packaging (267 mails)

< Previous Next >
Re: [opensuse-packaging] Re: How to detect package's version in specfile?
  • From: Marguerite Su <i@xxxxxxxxxxxxx>
  • Date: Fri, 2 Nov 2012 16:47:45 +0800
  • Message-id: <CAK0PdA=wX+L9SDgZ383NPxxwdrC7JXyTX0BXxgFvmRewEJ0CBg@mail.gmail.com>
On Fri, Nov 2, 2012 at 2:51 PM, Yamaban <foerster@xxxxxxxx> wrote:
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)

Thanks!

\..*$

\. means plain dot
.* means any char
$ means end

so 2.8.9 to 9 might be sed '|^.\..\.||'

(I didn't know . means any char, so I didn't understand Guido's BRE...

M
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation