http://qs321.pair.com?node_id=1201911


in reply to Re^4: Regex: matching character which happens exactly once (updated)
in thread Regex: matching character which happens exactly once

You're asking theoretical questions, and then getting bogged down in current implementation.

Turn this around. What would you want to happen if you had a forward reference?

-QM
--
Quantum Mechanics: The dreams stuff is made of

  • Comment on Re^5: Regex: matching character which happens exactly once (updated)

Replies are listed 'Best First'.
Re^6: Regex: matching character which happens exactly once (updated)
by LanX (Saint) on Oct 23, 2017 at 18:51 UTC
    You seem to think it's a bug, for me it's most likely a feature.

    I think this stems from the foundations of regular expressions as state machines.

    > What would you want to happen if you had a forward reference?

    Something wonderful, HAL!

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!