Hi there
I have html page, which I would like to extract info from.
It has baseball scores and lots of html junk between the data (and sometimes its not same html ie font size and others keep changing).
If I can figure out, how to extract just few numbers, I will be fine. Data always comes up as a:
wins^losts^ties and its always something between 0 and up to three digit number 104^78^8 or 0^8^0
How do I build the code? It should be just one line right?
Something like: $scores =~ s/(.*?.).^.(.*?.).^.(.*?.)/Wins:$1 Losts:$2 Ties:$3/sg;
How do I add a code to limit to only get the record if its up to three digit number?
Since page has sometimes has "^" mark somewhere else on the page to list something else.
I have html page, which I would like to extract info from.
It has baseball scores and lots of html junk between the data (and sometimes its not same html ie font size and others keep changing).
If I can figure out, how to extract just few numbers, I will be fine. Data always comes up as a:
wins^losts^ties and its always something between 0 and up to three digit number 104^78^8 or 0^8^0
How do I build the code? It should be just one line right?
Something like: $scores =~ s/(.*?.).^.(.*?.).^.(.*?.)/Wins:$1 Losts:$2 Ties:$3/sg;
How do I add a code to limit to only get the record if its up to three digit number?
Since page has sometimes has "^" mark somewhere else on the page to list something else.