Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Strange regex behavior

by BrowserUk (Patriarch)
on Aug 14, 2005 at 21:15 UTC ( [id://483724]=note: print w/replies, xml ) Need Help??


in reply to Strange regex behavior - beware chunk boundaries!

I haven't looked, but I bet that the number 3975 spans a 1024-byte boundary in the file.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.

Replies are listed 'Best First'.
Re^2: Strange regex behavior
by Bob9000 (Scribe) on Aug 14, 2005 at 21:33 UTC

    Or it could be the second match in one 1024-byte block.

    I think the easiest way to do this would be to pull the entire page into $buf, and then do:

    @listing = ($buf =~ /ID=(\d+)/g);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-03-19 06:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found