Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Puzzle Regex: Letter Frequency Arithmetic Sequence (UPDATED)

by LanX (Bishop)
on Oct 20, 2017 at 18:20 UTC ( #1201769=note: print w/replies, xml ) Need Help??


in reply to Re^2: Puzzle Regex: Letter Frequency Arithmetic Sequence
in thread Puzzle Regex: Letter Frequency Arithmetic Sequence

Nice solution of the "variable length lookbehind" not allowed problem!

But why \n instead of $ ? *

edit

I suppose it's necessary because the following assertion wouldn't be executed?

update

*) well, I just noticed the "@_\n@_" part where you are doubling the input, which explains the "\n" and some other confusion about pos.

I agree, "too much cheating!" ;-p

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

  • Comment on Re^3: Puzzle Regex: Letter Frequency Arithmetic Sequence (UPDATED)
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1201769]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2018-07-16 04:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (332 votes). Check out past polls.

    Notices?