Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...) (forget captures )

by LanX (Saint)
on Oct 20, 2021 at 23:44 UTC ( [id://11137831]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)
in thread Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)

> a way to "forget" the group...

Ha! Someone already found a generic solution 14 years ago....:)

> Re^6: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...) (??{})

DB<1> x "ZBBCZZ" =~ /(??{'(.)\1*'})/g; 0 'Z' 1 'BB' 2 'C' 3 'ZZ' DB<2>

Brillant! :)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^3: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...) (forget captures )
  • Download Code

Replies are listed 'Best First'.
Re^4: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)
by eyepopslikeamosquito (Archbishop) on Oct 21, 2021 at 01:01 UTC

    And I see pKai is from Erlangen - an easy 216.6 km scenic drive from Darmstadt. :)

    Nice necropost BTW.

    Update: Maybe you should try to hire pKai to replace your new Python guy. :)

      I noticed.

      Actually our last "real" German Perl Workshop in 2020 ° was there and I'm wondering if I (ever) met him. :)

      (There was a time where I thought Erlang was named after Erlangen ...)

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

      °) the only in-house/unwired Perl Workshop of 2020 AFAIK! =)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2026-03-09 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.