Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Pattern Finding

by ariels (Curate)
on Sep 11, 2001 at 15:10 UTC ( [id://111709]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<6> $x = 'helloworldhellohellohihellohiworldhi'
    
    ...
    hi
    h
    l
    
  2. or download this
      DB<8> print "$1\n" while $x =~ /(\w{2,})(?=.*\1.*\1)/g
    hello
    hello
    hi
    
  3. or download this
    sub repeat_finder_re {
      my $n = shift;
      '(\w{2,})(?=' . ('.*\\1'x($n-1)) . ')'
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found