DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   Looking for table rows with Regular expression. (http://www.daniweb.com/forums/thread18342.html)

Mayhem50 Feb 9th, 2005 7:26 pm
Looking for table rows with Regular expression.
 
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:

Mayhem50 Feb 9th, 2005 10:10 pm
Re: Looking for table rows with Regular expression.
 
<tr>(\r*\s*.*\r*)*(</tr>)

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

Mayhem50 Feb 9th, 2005 11:02 pm
Re: Looking for table rows with Regular expression.
 
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>

Mayhem50 Feb 10th, 2005 12:14 am
Re: Looking for table rows with Regular expression.
 
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>)


All times are GMT -4. The time now is 12:51 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC