Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Regex Java REGEX

Have Programming Question? Ask it here!
 
 
 


Aman Gupta
Java REGEX
1 Answer(s)      a year and 11 months ago
Posted in : Regex


I have a String {"name":"ashish","surname":"singh"} I have to check whether each word is surrounded by the " (double quotes) or not using the java regex. without using Json lib. Kindly help


Advertisement
View Answers

June 6, 2013 at 1:46 PM


hi friend,

Try the following regex, may this will be helpful for you

String regex = "[^\"]*|\\w*";

Thanks.



Related Tutorials/Questions & Answers:
 

 

 

DMCA.com