Why are the first 2 results ["xy"] and not ["x"]? It seems Drop is
ignored with [1] or [0:1] but works with any other type of repeat.
-- You received this message because you are subscribed to the Google Groups "lepl" group.
To post to this group, send email to lepl@googlegroups.com.
To unsubscribe from this group, send email to lepl+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/lepl?hl=en.
That's a bug! Just playing around it seems to be in the Repeat matcher (ie
it's not a rewrite problem, which is where you'd expect most bugs).
Unfortunately that means there's no obvious workaround.
Hmmm. However, this appears to work OK?
xy = ('x' & Drop('y')) & Empty()
which might be enough to keep you going?
Sorry - I'll fix it, but I'm afraid it will likely be tomorrow (going out
tonight).
On Wed, May 19, 2010 at 01:56:22PM -0700, jazg wrote:
> >>> xy = "x" & Drop("y")
> >>> xy[1].parse("xy")
> ['xy']
> >>> xy[:1].parse("xy")
> ['xy']
> >>> xy[1:].parse("xy")
> ['x']
> >>> xy[:2].parse("xyxy")
> ['x', 'x']
> Why are the first 2 results ["xy"] and not ["x"]? It seems Drop is
> ignored with [1] or [0:1] but works with any other type of repeat.
> -- > You received this message because you are subscribed to the Google Groups "lepl" group.
> To post to this group, send email to lepl@googlegroups.com.
> To unsubscribe from this group, send email to lepl+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/lepl?hl=en.
-- You received this message because you are subscribed to the Google Groups "lepl" group.
To post to this group, send email to lepl@googlegroups.com.
To unsubscribe from this group, send email to lepl+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/lepl?hl=en.
On Wed, May 19, 2010 at 01:56:22PM -0700, jazg wrote:
> >>> xy = "x" & Drop("y")
> >>> xy[1].parse("xy")
> ['xy']
> >>> xy[:1].parse("xy")
> ['xy']
> >>> xy[1:].parse("xy")
> ['x']
> >>> xy[:2].parse("xyxy")
> ['x', 'x']
> Why are the first 2 results ["xy"] and not ["x"]? It seems Drop is
> ignored with [1] or [0:1] but works with any other type of repeat.
> -- > You received this message because you are subscribed to the Google Groups "lepl" group.
> To post to this group, send email to lepl@googlegroups.com.
> To unsubscribe from this group, send email to lepl+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/lepl?hl=en.
-- You received this message because you are subscribed to the Google Groups "lepl" group.
To post to this group, send email to lepl@googlegroups.com.
To unsubscribe from this group, send email to lepl+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/lepl?hl=en.
> > Why are the first 2 results ["xy"] and not ["x"]? It seems Drop is
> > ignored with [1] or [0:1] but works with any other type of repeat.
> > -- > > You received this message because you are subscribed to the Google Groups "lepl" group.
> > To post to this group, send email to lepl@googlegroups.com.
> > To unsubscribe from this group, send email to lepl+unsubscribe@googlegroups.com.
> > For more options, visit this group at http://groups.google.com/group/lepl?hl=en.
-- You received this message because you are subscribed to the Google Groups "lepl" group.
To post to this group, send email to lepl@googlegroups.com.
To unsubscribe from this group, send email to lepl+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/lepl?hl=en.
> > > Why are the first 2 results ["xy"] and not ["x"]? It seems Drop is
> > > ignored with [1] or [0:1] but works with any other type of repeat.
> > > -- > > > You received this message because you are subscribed to the Google Groups "lepl" group.
> > > To post to this group, send email to lepl@googlegroups.com.
> > > To unsubscribe from this group, send email to lepl+unsubscribe@googlegroups.com.
> > > For more options, visit this group at http://groups.google.com/group/lepl?hl=en.
-- You received this message because you are subscribed to the Google Groups "lepl" group.
To post to this group, send email to lepl@googlegroups.com.
To unsubscribe from this group, send email to lepl+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/lepl?hl=en.