Cytat(Qss @ 4.11.2013, 18:24:50 )

zawsze mi sie myli ;D nie
(*.?)
tylko
(.*?)
Zmieniłem i pobierając ze zmiennej
$tekst działa, ale jak daje to aby pobierało ze strony (cURL) to lipka :/
function user_id($u_nick)
{
$config['address'] = 'http://forum.taern.pl/';
$path['cookie'] = dirname(__FILE__).'/cookies.txt';
$post['username'] = 'dsgbw';
$post['password'] = '**';
$post['redirect'] = 'value="./memberlist.php?username="'.$u_nick;
$post['login'] = 'Zaloguj się';
$ch = curl_init($config['address'].'memberlist.php?username='.$u_nick);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_COOKIEFILE, $path['cookie']);
curl_setopt($ch, CURLOPT_COOKIEJAR, $path['cookie']);
curl_setopt($ch, CURLOPT_POSTFIELDS, prepare_request($post));
$page = curl_exec($ch);
curl_close($ch);
preg_match_all('#href="(.*?)viewprofile&u=([0-9]+)">#', $page, $matches); //print_r($matches[1][0]);
}