how to get a string in two quotes

Solutions on MaxInterview for how to get a string in two quotes by the best coders in the world

showing results for - "how to get a string in two quotes"
Imen
24 Nov 2020
1Pattern p = Pattern.compile("\"([^\"]*)\"");
2Matcher m = p.matcher(line);
3while (m.find()) {
4  System.out.println(m.group(1));
5}
Stephan
10 Mar 2018
1#
2# START of getting the substring
3#
4start = line.find("\"") + len("\"")
5end = line.find("*\"")
6substring = line[start:end]
7print(substring)
8plaintxt += substring
9substring = ""
10print(plaintxt)
11#
12# END of getting the substring
13#
14
15# This will find a string in the middle of two quotes 
16# with a star at the end
17# Like this: (START --->) " This is your string (END --->) *"