Comunidad de diseño web y desarrollo en internet online

Buscar y reemplazar

Citar            
MensajeEscrito el 09 Dic 2005 07:10 pm
:D Hola comunidad:

Tengo este codigo que funciona perfecto en AS.

Código :

searchSrting = ",";
replaceString = ".";
oldString = " HOLA, AMIGO, COMO ESTAS";
newString = oldString.split(searchSrting).join(replaceString);
trace (newString);


Busca un caracter o cadena y lo reemplaza.

Necesito algo que me haga lo mismo pero en PERL, alguien sabe?

Gracias anticipadas

Por manuel_cfe

106 de clabLevel



 

firefox
Citar            
MensajeEscrito el 10 Dic 2005 09:23 am
Perl, no se mucho, mas bien nos e xD :P, solo te puedo decir que se ahce on expresiones regulares, busca en google esto perl expresiones regulares.

Saludos

Por Cep

BOFH

1509 de clabLevel

9 tutoriales

1 ejemplo

Genero:Masculino   REC Bastard Operators From Hell

Web Developer

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.