"Paul \"LeoNerd\" Evans" <leonerd@leonerd.org.uk> wrote: :In summary: : : I'd like a way to know if a regexp fails to match because it ran out : of input but was happy until that point, or if it found some bad : characters that adding more input to will never help. I'd also love to have this, but to get it you need to be able to turn off any optimizations that make it impossible to know, such as "string too short". Which I think means that first we need a way to make it possible to turn optimizations on and off individually - which is something we're working towards already - and then we need to understand which of them would need to be turned off in this case. (I suspect once you have control of the individual optimizations, you might even be able to do the rest in a module, by injecting an appropriate assertion.) HugoThread Previous