Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by QM (Parson)
on Oct 23, 2017 at 16:57 UTC ( #1201911=note: print w/replies, xml ) Need Help??


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 (Cardinal) 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!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1201911]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2021-04-18 16:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?