Hi I’ve got some clients who have there products on several sits and don’t wish keep entering data for each site. So I want to do some screen scraping but I’ve been having a problem creating a lazy regular expression that will allow me to put each table row from the html into an array.

If anyone had done this any help would be appreciated
:rolleyes:

<tr>(\r*\s*.*\r*)*(</tr>)

This to me is what i think should find it but it don't work! :evil:

This grabs all the table rows but i only want to get one at a time anyone know how i can change this to only get the first row?

<tr>(\r*\s*.*\r*\s)*</tr>

WWWWWWWEEEEEEEEEEEEEEE GOT it but thanks for your views anyway hope this can help somone out there. :lol: :lol: :eek: :p


<tr>(\r*\s*.*\r*\s)*?(\s*<.tr>)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.