Answer the question
In order to leave comments, you need to log in
How to return a substring between characters?
Let's say there is a line:
I need to split this line into a list that will contain the following picture:
{"Title", "books", "Python 3"}
I looked in the official documentation, but did not find it :(
QString str = "Название книги \"Python 3\"";
Answer the question
In order to leave comments, you need to log in
Hello.
There are several ways.
1. Through regular expressions, tynts .
2. Remove the quotes and split the string into a list of strings by space, tyts and tynts (and pre- thousand ).
IMHO you didn't look at the documentation.... or out of the corner of your eye looking for a ready recipe.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question