Parsing html

So I’m trying to retrieve just one line from a site. I don’t know how to do regex syntax, but this is as far as I’ve gotten:
[php]<?php
$content = file_get_contents(‘http://arkbank.jlss.eu/balance.php?id=127’);

preg_match(’/^

ACCOUNT BALANCE:

([0-9]+) Bux

/$’, $content, $match);

var_export($match);
?>[/php]

Well, Necro,

Here is a link that explains the use of preg_match. It might help explain the output from it.
Hope it helps some…

http://php.net/manual/en/function.preg-match.php

(Read the posted notes further down the page…)

Sponsor our Newsletter | Privacy Policy | Terms of Service