Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Non-Perl regular expressions

by petemar1 (Pilgrim)
on Dec 20, 2003 at 07:14 UTC ( [id://316015]=perlquestion: print w/replies, xml ) Need Help??

petemar1 has asked for the wisdom of the Perl Monks concerning the following question:

Hello:

http://www.javajunkies.org/index.pl?node_id=3524

I understand this isn't a Java forum, but I have a question tangential to Perl via regular expressions. I'm currently writing a small "screen-scraping" application using java.util.regex.* and am having trouble matching all the strings in a page my pattern should find.

My regex is:

    ViewItem&item=(.*?)&category=

or, alternatively:

    ViewItem&item=(\\d*?)&category=

and the page I'm searching is:

    http://search-completed.ebay.com/search/search.dll?GetResult&rfisactive=1®ion=0&maxrecordsperpage=50&from=R14&query=canon+digital+camera+-battery+-case+-cable+-card+-memory+-camcorder&ht=1&completedonly=1

I'm trying to match all the item IDs for the products listed on the page. I match 1 or two of them but I should return about 50 per page. Any ideas?

Best regards,
petemar1

Originally posted as a Categorized Question.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2025-11-11 07:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (67 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.