On Sat, Jun 21, 2008 at 01:59:28PM -0700, cognominal wrote:
: C<before> and <after> being zero width assertions , I think they must
: always be called with
: a question mark. This is not the case line 394 and 1537.
: Perljam  suggested that a zero width assertion can be also a capturing
: one and that
: could explain the dropping of the question mark. I don't agree with
: that suggestion.

I see little reason to prohibit use of ?-less <before> to mean capture.
If someone is looking to eke out more performance, it will be fairly
obvious that the syntax tree has extraneous "before" nodes in it.
And since you can use <before> in a kind of "and" logic to view a
string in different ways, any of which are valid views, I think
a particular view should be able to return its matches even if
you later force it to succeed at zero width.

: Anyway the examples given line 394 and 1537 don't involve capture.

True, those are fossils.

Larry

Reply via email to