Ver Mensaje Individual
  #15 (permalink)  
Antiguo 21/06/2010, 11:47
Avatar de Most
Most
 
Fecha de Ingreso: marzo-2009
Mensajes: 642
Antigüedad: 17 años, 7 meses
Puntos: 6
Respuesta: cURL y regular expression - Problema

Bueno, ya que he leido 1 aver si me enterado :

Código PHP:
<?php
$cURL 
= curl_init();
$URL = 'http://www.forosdelweb.com/f18/curl-regular-expression-problema-818261/';
curl_setopt($cURL, CURLOPT_URL, $URL);
curl_setopt($cURL, CURLOPT_RETURNTRANSFER,1);
$URL_CODIGO = curl_exec ($cURL);
curl_close ($cURL);
preg_match("/^<b>(.*)</b>$/", $URL_CODIGO, $matches);
echo 
$matches;
?>
hay se supone que ya le he puesto los delimitadores, no?