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.


_______________________________________________
Quilt-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/quilt-dev

Reply via email to