Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Welcome to the Monastery
 
PerlMonks  

Re^2: regex on gigabyte string (31 bits)

by tye (Cardinal)
on Jan 26, 2013 at 19:11 UTC ( #1015527=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     $ perl -del
      DB<1> x 0+( () = join('','<c>','x'x(1<<30),'</c>') =~ m{<c.*?/c>}g )
    ...
    0  1
      DB<4> x 0+( () = join('','<c>','x'x((1<<31)-7),'</c>') =~ m{<c.*?/c>
    +}g )
    0  0
    
  2. or download this
     $ perl -del
      DB<2> x 0+( () = join('',('<c>','x'x((1<<30)-10),'</c>')x2) =~ m{<c.
    +*?/c>}g )
    0  2
      DB<1> x 0+( () = join('',('<c>','x'x((1<<30)-10),'</c>')x3) =~ m{<c.
    +*?/c>}g )
    0  0
    
  3. or download this
     $ perl -del
      DB<1> $x = join('',('<c>','x'x((1<<30)-10),'</c>')x2); while( $x =~ 
    +m{<c.*?/c>}g ) { print pos($x), $/ }
    ...
    2147483642
      DB<1> $x = join('',('<c>','x'x((1<<30)-10),'</c>')x3); while( $x =~ 
    +m{<c.*?/c>}g ) { print pos($x), $/ }
      DB<2>
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (12)
As of 2014-04-21 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (495 votes), past polls