double quotes in java regex

double quotes in java regex

using backslash escape character \\"represent the double quotes character in java

‮ refer‬to:lautturi.com
// match the string starts and end with a double quote

if (str.matches("\".*\"")) {
   
}
Created Time:2017-10-07 14:21:46  Author:lautturi