Last active
March 9, 2024 23:47
-
-
Save abenevaut/7597297 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QString text("Text example {remplacement_1} & {element_2} {element_2} !!"); | |
QRegExp rx ("\\{remplacement_1\\}"); | |
QRegExp rx2 ("\\{element_2\\}"); | |
text.replace(rx, "REPLACEMENT 1"); | |
text.replace(rx2, "REPLACEMENT 2"); | |
std::cout << text.toStdString(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment