![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
21/12/2009, 09:44
|
![Avatar de korg1988](http://static.forosdelweb.com/customavatars/avatar142571_5.gif) | | | Fecha de Ingreso: junio-2006 Ubicación: Santa Fe, Argentina
Mensajes: 825
Antigüedad: 18 años, 7 meses Puntos: 19 | |
Respuesta: extraer cadena
Código PHP:
Ver original$content = '>>> Dados /// <<< (1)EXTRACCION 1 (2)Parte unica(3) >>> Dados///<<< (1) LO QUE QUIERO EXTRAER 2222 (2)Parte 1(3)///<<< (1)LO QUE QUIERO EXTRAER 3333 (2)Parte 2(3) >>>'; $pattern = '#\(1\)(.*?)\(2\)#s'; $resultados = $matches[1];
Ahi tenes! |