Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Finding repeat sequences.

by BrowserUk (Pope)
on Jun 18, 2013 at 19:59 UTC ( #1039642=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $s = 'aaaabaaaabaaaaabaaaab';;
    $s =~ m[(.+).*\1] and print $1;;
    aaaabaaaab
    
  2. or download this
    aaaabaaaabaaaaabaaaab
    aaaabaaaab aaaabaaaab
    1         ^2
    
  3. or download this
    $s = 'aaaabaaaabaaaaabaaaab';;
    $s =~ m[(.+)\1] and print $1;;
    aaaab
    
  4. or download this
    aaaabaaaabaaaaabaaaab
    aaaabaaaab aaaabaaaab
    1    2    ^3    4
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1039642]
help
Chatterbox?
[choroba]: Corion Nice
[Corion]: Hi choroba! I'm somewhat fond of this picture - I think it is Breaking Bad-style even though I haven't watched the series at all ;)
[Corion]: Hmmm - and now that I look at it, the gallery I'm using doesn't produce non-Javascript compatible links in the sense that hotlinking to an image will only work for Javascript enabled...
[Corion]: On the other hand, maybe supporting non-Javascript isn't that much a priority, and I'm not exactly sure how I could make it work for both kinds of browsers without server-side magic

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2017-02-27 08:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (377 votes). Check out past polls.