Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Finding repeat sequences.

by BrowserUk (Patriarch)
on Jun 18, 2013 at 19:59 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1039642]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-20 01:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found