heres my regex:
preg_match_all('/<td align="right" class="gridCell[A-z]{0,3}">[0-9]{0,4}<\/td>/',$item,$qty[]);
heres the output:
Array
(
[0] => Array
(
[0] => Array
(
[0] => <td align="right" class="gridCell">17</td>
)
)
[1] => Array
(
[0] => Array
(
[0] => <td align="right" class="gridCellAlt">18</td>
)
)
[2] => Array
(
[0] => Array
(
[0] => <td align="right" class="gridCell">48</td>
)
)
[3] => Array
(
[0] => Array
(
[0] => <td align="right" class="gridCellAlt">38</td>
)
)
)
why is it returning the HTML code and not just the numbers?
also
the regex:
preg_match("/makeWin2\('(.*)', '/",$item,$link[]);
the string:
<a href="javascript:makeWin2('localhost', '500', '400');" class="lnk">Link</a>
(note that localhost is for the devside only... once its production it will have a very long url i expect)
and the output:
Array
(
[0] => Array
(
[0] => localhost', '500
)
[1] => Array
(
[0] => localhost', '500
)
[2] => Array
(
[0] => localhost', '500
)
[3] => Array
(
[0] => localhost', '500
)
)
why is it returning the stuff after localhost? im specifying within the single quotes???
thanks alot