Looking for table rows with Regular expression.

Reply

Join Date: Feb 2005
Posts: 4
Reputation: Mayhem50 is an unknown quantity at this point 
Solved Threads: 0
Mayhem50 Mayhem50 is offline Offline
Newbie Poster

Looking for table rows with Regular expression.

 
0
  #1
Feb 9th, 2005
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:
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 4
Reputation: Mayhem50 is an unknown quantity at this point 
Solved Threads: 0
Mayhem50 Mayhem50 is offline Offline
Newbie Poster

Re: Looking for table rows with Regular expression.

 
0
  #2
Feb 9th, 2005
<tr>(\r*\s*.*\r*)*(</tr>)

This to me is what i think should find it but it don't work! :evil:
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 4
Reputation: Mayhem50 is an unknown quantity at this point 
Solved Threads: 0
Mayhem50 Mayhem50 is offline Offline
Newbie Poster

Re: Looking for table rows with Regular expression.

 
0
  #3
Feb 9th, 2005
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>
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 4
Reputation: Mayhem50 is an unknown quantity at this point 
Solved Threads: 0
Mayhem50 Mayhem50 is offline Offline
Newbie Poster

Re: Looking for table rows with Regular expression.

 
0
  #4
Feb 10th, 2005
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>)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC