Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: strange usage of s///

by smls (Friar)
on Sep 03, 2013 at 17:36 UTC ( #1052154=note: print w/replies, xml ) Need Help??


in reply to Re^2: strange usage of s///
in thread strange usage of s/// [solved: Perl 5.14 and 5.16 bug]

Neigher \K nor /r existed in Perl 5.6.x, which is the latest version of the regexp syntax that YAPE::Regex::Explain supports. (This is documented, and would have been pretty easy to test.)

Yes, my bad.

I made up for it by providing a proper, detailed answer below... :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1052154]
help
Chatterbox?
[choroba]: What is infobot
[choroba]: infobot is an irc bot that "learns" by remembering sentences of the form "X is Y" and then replying to "What is X" with "X is Y"
[choroba]: it works!
[Corion]: choroba: :-D
[Corion]: And yes, at least the basic implementation is to strip off some prepositions ("the", "a", "an") from the term with regular expressions and then do a regex match ;-)
[Corion]: So that could become a fun series of articles that implement this with regular expressions, Parse::Eyapp, Marpa, YACC, Perl6 and Regexp::Grammar and whatnot. If I have a test suite, I could even do benchmarks.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2017-08-17 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (286 votes). Check out past polls.

    Notices?