Hello!
Let's assume I have the following QString: "hello/world/how\/are/you".
I would like to split the string into a QStringList with the following content: {"hello", "world", "how\/are", "you"}. The best success so far I had with
QRegExp ex("[^\\\\]/")
To copy to clipboard, switch view to plain text mode
, but that unfortunately cuts off the last letter before the backslash. Is there a way to achive the desired split? BTW, I was only able to split the string if I escaped the backslash in "how\\/are" manually,
string.replace("\\", "\\\\")
string.replace("\\", "\\\\")
To copy to clipboard, switch view to plain text mode
did not work, why is that?
BR
Bookmarks