简体   繁体   中英

Regex in java to extract string between double quotes

Hi im able to read data between double quotes , but i stuck on this problem

"13. The ""strange situation"" in child development is used to assess the infant's: (A) level of curiosity. (B) security of attachment. (C) ability to relate to strangers. (D) response to new types of stimulation. (E) developmental status with object constancy."

I have to read data between double quotes ,but the problem is when the question itself has double quotes. How can i read the double double quotes within the double quotes ??

Is there any Regex for this

try this

(.*)A\.(.*)B\.(.*)C\.(.*)D\.(.*)E\.(.*)

but be sure that your text contains only one : ABCD and E.

otherwise you cannot solve this

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM