I want to use a regular expression to extract two words from a sentence: Mobile and Application.
It should only be extracted when there are two words.
For example,
abcd Mobile defe Application is also true.
Mobile Application asdbfdvdsc is also true.
Application asdbdfbdfb Mobile is also true.
Mobile, Application Regardless of the order/ no matter how many words there are between two words/ can I extract two words from a sentence using a regular expression?
It should be
Use the QString.replace(const QRegularExpression &re, const QString &after) to extract the undesired words from the text: