I am trying to pull some data from a external webpage using a regular expression.
The url is:
and I am trying to pull the top 5 riders Names from the table.
The pattern I am using(for the first rider) is below:
Which returns a parse error.
The code:
returns all the information for one line so I think I am not detecting the whitespace correctly.
Can anyone help?
Roger
The url is:
and I am trying to pull the top 5 riders Names from the table.
The pattern I am using(for the first rider) is below:
Code:
$pattern = "<TD>1.</TD>\n <TD>(.*)</TD>\n <TD>";
Which returns a parse error.
The code:
Code:
$pattern = "<TD>1.</TD>(.*)<TD>2.</TD>;
returns all the information for one line so I think I am not detecting the whitespace correctly.
Can anyone help?
Roger