Here you can find the source of unescapeDoubleQuote(String string)
Parameter | Description |
---|---|
string | O texto com escape de aspas duplas. |
public static String unescapeDoubleQuote(String string)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w ww .j a v a2 s . co m * Remove o escape de todas as aspas duplas de um texto. * * @param string * O texto com escape de aspas duplas. * * @return * O texto sem escape. */ public static String unescapeDoubleQuote(String string) { return string.replaceAll("\\\\\"", "\""); // string.replaceAll( \\" , " ); <- O que as Strings representam // string.replaceAll( \" , " ); <- O que a maquina regex entende } }