I have one regex in .net code to catch all the literals ( for Java ) .but it seems not to work in Java code to catch String -literals.Regex is
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}
(""""|""[\s\S]*?[^\]"")
It doesnt work in simple programs, or online testers or even my project.
My application (in java or .net) based on language paramter (say -java here) parses and collects various parts of langugae like String literals here.
Please help me with equivalent in Java,