[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Quilt-dev] merging with upstream and adding new files
From: |
Andreas Gruenbacher |
Subject: |
Re: [Quilt-dev] merging with upstream and adding new files |
Date: |
Mon, 13 Jun 2005 00:22:22 +0200 |
User-agent: |
KMail/1.7.1 |
On Sunday 12 June 2005 23:03, Jean Delvare wrote:
> > The 2nd and 4th parentheses are not counted with (?:...); they are
> > used for grouping only.
>
> Your regular expression won't match this though. Two question marks
> missing maybe? This would clear my original confusion.
>
> /^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/
ah ... of course, yes ;)
> And you should omit the first pair of parentheses too, as you don't use
> the captured value anyway.
That would make the RE more confusing I think.
-- Andreas.
- Re: [Quilt-dev] merging with upstream and adding new files, Jean Delvare, 2005/06/02
- Re: [Quilt-dev] merging with upstream and adding new files, jerome lacoste, 2005/06/02
- Re: [Quilt-dev] merging with upstream and adding new files, Jean Delvare, 2005/06/03
- Re: [Quilt-dev] merging with upstream and adding new files, jerome lacoste, 2005/06/12
- Re: [Quilt-dev] merging with upstream and adding new files, Andreas Gruenbacher, 2005/06/12
- Re: [Quilt-dev] merging with upstream and adding new files, Jean Delvare, 2005/06/12
- Re: [Quilt-dev] merging with upstream and adding new files, Andreas Gruenbacher, 2005/06/12
- Re: [Quilt-dev] merging with upstream and adding new files, Jean Delvare, 2005/06/12
- Re: [Quilt-dev] merging with upstream and adding new files, Andreas Gruenbacher, 2005/06/12
- Re: [Quilt-dev] merging with upstream and adding new files, Jean Delvare, 2005/06/12
- Re: [Quilt-dev] merging with upstream and adding new files,
Andreas Gruenbacher <=