Re: Common error with | and ^$ in regexps

2005-02-07 Thread Patrick R. Michaud
On Mon, Feb 07, 2005 at 01:21:00PM +0100, Juerd wrote: > Nicholas Clark skribis 2005-02-07 12:10 (+): > > Will the relative precedence of grouping versus anchors for beginning and > > end of line remain the same in Perl6 rules? > > There currently is no such thing as precedence in regexes. Cha

Re: Common error with | and ^$ in regexps

2005-02-07 Thread Juerd
Nicholas Clark skribis 2005-02-07 12:10 (+): > Will the relative precedence of grouping versus anchors for beginning and > end of line remain the same in Perl6 rules? There currently is no such thing as precedence in regexes. Changing this would make understanding regexes a lot harder, I think

Common error with | and ^$ in regexps

2005-02-07 Thread Nicholas Clark
Will the relative precedence of grouping versus anchors for beginning and end of line remain the same in Perl6 rules? The error of writing /^(?:free|net|open)bsd|bsdos|interix$/ when you mean /^(?:(?:free|net|open)bsd|bsdos|interix)$/ is rather too easy to make. This is not the first time