N
N
Nicky232020-05-31 15:44:22
Qt
Nicky23, 2020-05-31 15:44:22

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

1 answer(s)
K
Kalombyr, 2020-05-31
@Nicky23

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 question

Ask a Question

731 491 924 answers to any question