Cita:
Iniciado por IsaBelM sí es en esa expresión, mas concretamente en
lee de aquí en adelante. además te servirá para arreglar la última expresión
Hola, gracias por la ayuda..
Ya hice lo que me pusiste,.. pero el resultado es:
Código PHP:
'Aceite' 'de' 'cacahuete',100,0.4,878,0.0,0.0,99.4,13.0,53.0,24.6,1,0.0,0,0,0,0,0,0.06
|'Aceite' 'de' 'coco',100,0.0,884,0.0,0.0,100.0,0,5.8,1.8,0,0.0,2,2,0,2,1,0.04 |'Aceite' 'de' 'germen' 'de' 'trigo',100,0.0,879,0.0,0.0,99.5,17.2,15.7,64.7,0,0.0,0,0,0,0,0,0.00
|'Aceite' 'de' 'girasol',100,0.2,882,0.0,0.0,99.8,11.0,22.4,60.7,2,0.0,0,0,0,0,0,0.03 |'Aceite' 'de' 'hígado' 'de' 'bacalao',100,0.0,901,0.0,0.0,99.9,4.5,47.5,34.5,500,0.0,0,0,0,0,0?,0.00
|'Aceite' 'de' 'maíz',100,0.0,884,0.0,0.0,100.0,13.4,31.6,50.9,2,0.0,1,1,0,15 |
Ahora en cada espacio pone las comillas simples y debiera ser al completar toda la frase textual ejemplo: 'Aceite de cacahuete', :S
Puse en la sentencia:
campoTextArea = campoTextArea.replace(/\r\n/g,'|');
el \r\n
y en la otra le quite el \s
y fue que me puso todos los espacios asi :S