Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/05/2010, 09:19
sandovalchrist
 
Fecha de Ingreso: junio-2009
Mensajes: 96
Antigüedad: 14 años, 10 meses
Puntos: 1
Substring (?)

Bueno la idea es tomar una parte del texto dada una cadena.

texto = "jhuhuhuhh Action: failed Status: 5.4.4 Diagnostic-Code: X-Postfix; unable to look up host ptt.on.th: Name or service"
textoAux = texto.find("Status")
print textoAux # Me da que la posicion es 25

#aca da error
textoAux2 = texto.substring(textoAux,5)
textoAux = textoAux2

O sea si Status es el caracter 25..... sumame 5 posiciones mas y dame "5.4.4"

en si es eso lo que quiero hacer...

gracias a todos de antemano