954,585 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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
Newbie Poster
4 posts since Feb 2005
Reputation Points: 10
Solved Threads: 0
 

(\r*\s*.*\r*)*()

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

Mayhem50
Newbie Poster
4 posts since Feb 2005
Reputation Points: 10
Solved Threads: 0
 

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?

(\r*\s*.*\r*\s)*

Mayhem50
Newbie Poster
4 posts since Feb 2005
Reputation Points: 10
Solved Threads: 0
 

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

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

Mayhem50
Newbie Poster
4 posts since Feb 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You