VPC_nome_foto.replaceAll("\\", "/"); [RESOLVIDO]

1 resposta
illuminati.spiritus

Olá,

Estou tentando substituir as barras “/” por “” utilizando o replaceAll e não estou conseguindo.
Alguém poderia me ajudar ?

Exemplo:

VPC_nome_foto = “C:\TESTE\foto.jpg”;
VPC_nome_foto = VPC_nome_foto.replaceAll("\", “/”);

1 Resposta

illuminati.spiritus

Já achei a reposta.
Tenho que colocar:
VPC_nome_foto = VPC_nome_foto.replaceAll("\\", “/”);

Muito obrigado a todos…

Criado 8 de setembro de 2010
Ultima resposta 8 de set. de 2010
Respostas 1
Participantes 1