Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (18)
As of 2014-07-10 13:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (210 votes), past polls