473,387 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Extract data from table html

Hi,
I would like to extract data from the table attached.
Could someone help me to create the regular expression to grab that
informations?

TABLE:

<table border=1 cellpadding=4 cellspacing=0 width=100%><tr
bgcolor='#dcdcdc'><td align=center><b>Data</b></td><td
align=center><b>Apertura</b></td><td
align=center><b>Massimo</b></td><td align=center><b>Minimo</b></td><td
align=center><b>Chiusura</b></td><td
align=center><b>Volumi</b></td><td align=center><b>Chiusura
aggiustata*</b></td></tr><tr align=right><td
align=right><nobr>20-Ottobre-03</nobr></td><td
align=right><nobr>5.90</nobr></td><td
align=right><nobr>5.94</nobr></td><td
align=right><nobr>5.86</nobr></td><td
align=right><nobr><b>5.91</b></nobr></td><td
align=right><nobr>4,301,760</nobr></td><td
align=right><nobr>5.91</nobr></td></tr><tr align=right><td
align=right><nobr>17-Ottobre-03</nobr></td><td
align=right><nobr>6.00</nobr></td><td
align=right><nobr>6.01</nobr></td><td
align=right><nobr>5.89</nobr></td><td
align=right><nobr><b>5.91</b></nobr></td><td
align=right><nobr>5,021,260</nobr></td><td
align=right><nobr>5.91</nobr></td></tr><tr align=right><td
align=right><nobr>16-Ottobre-03</nobr></td><td
align=right><nobr>5.99</nobr></td><td
align=right><nobr>6.06</nobr></td><td
align=right><nobr>5.94</nobr></td><td
align=right><nobr><b>5.95</b></nobr></td><td
align=right><nobr>7,506,530</nobr></td><td
align=right><nobr>5.95</nobr></td></tr><tr align=right><td
align=right><nobr>15-Ottobre-03</nobr></td><td
align=right><nobr>6.04</nobr></td><td
align=right><nobr>6.09</nobr></td><td
align=right><nobr>6.00</nobr></td><td
align=right><nobr><b>6.02</b></nobr></td><td
align=right><nobr>8,916,160</nobr></td><td
align=right><nobr>6.02</nobr></td></tr></table>
Jul 17 '05 #1
1 8389
fa*****@libero.it (fadfdsj) wrote in message news:<28**************************@posting.google. com>...
Hi,
I would like to extract data from the table attached.
Could someone help me to create the regular expression to grab that
informations? TABLE:

<table border=1 cellpadding=4 cellspacing=0 width=100%><tr
bgcolor='#dcdcdc'><td align=center><b>Data</b></td><td
align=center><b>Apertura</b></td><td


<snip>

You can do it, if you have http://weitz.de/regex-coach

---
"He who created the god was a fool; he who spreads his name is a
scoundrel and he who worships him is a barbarian."---Periyar, Famous
Tamil Rationalist
Email: rrjanbiah-at-Y!com
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: SteveJ | last post by:
All, Can someone help me solve the next step. First of all let me say I'm new to php. I pieced the following code together from samples I found on the net and a book I bought called PHP...
10
by: mark4 | last post by:
Hello, Are there any utilities to help me extract Content from HTML ? I'd like to store this data in a database. The HTML consists of about 10,000 files with a total size of about 160 Mb....
2
by: Bob | last post by:
How do I extract the value of a table field and save it to a variable of similar data type in VBA ? Thank you in advance, Bob.
1
by: Ori | last post by:
Hi, I have a HTML text which I need to parse in order to extract data from it. My html contain a table contains few rows and two columns. I want to extract the data from the 2nd column in...
9
by: chrisspencer02 | last post by:
I am looking for a method to extract the links embedded within the Javascript in a web page: an ActiveX component, or example code in C++/Pascal/etc. I am looking for a general solution, not one...
4
by: seberino | last post by:
I'm trying to extract some data from an XHTML Transitional web page. What is best way to do this? xml.dom.minidom.parseString("text of web page") gives errors about it not being well formed...
7
by: Ulysse | last post by:
Hello, I'm trying to extract the data from HTML table. Here is the part of the HTML source : """ <tr> <td class="tdn" valign="top"> <input name="x44553130" value="y" type="checkbox"></td>...
1
by: veer | last post by:
Hi i am making a program in which i want to extract data from html file . Actually there are two dates on html file i want to extract these dates but the main probleum is that these dates are...
18
by: Ecka | last post by:
Hi everyone, I'm trying to write a PHP script that connects to a bank's currency convertor page using cURL and that part works fine. The issue is that I end up with a page that includes a lot...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.