UPDATE REPOST BUMP How to construct / build / interpret regular expression ?
-
UPDATE DONE "Match any number of characters , (from start of the line) , until "new line \n " is reached : QRegularExpression re( ".*\n"); TODO match first word only (of each line ) match the entire text (first word of each line ) I am VERY sorry to be such bother, but I am actually looking for someone / somebody willing to help me to interpret ( read) the Linux regular expression manual to build the expression. My task is to match each and every FIRST word in multi-line string . I am stuck at "\w+" which matches EVERY word in the entire text I can post my current code when I get "I am willing help you..." response Thank you very much for understanding . Sal
-
UPDATE DONE "Match any number of characters , (from start of the line) , until "new line \n " is reached : QRegularExpression re( ".*\n"); TODO match first word only (of each line ) match the entire text (first word of each line ) I am VERY sorry to be such bother, but I am actually looking for someone / somebody willing to help me to interpret ( read) the Linux regular expression manual to build the expression. My task is to match each and every FIRST word in multi-line string . I am stuck at "\w+" which matches EVERY word in the entire text I can post my current code when I get "I am willing help you..." response Thank you very much for understanding . Sal
RegExr: Learn, Build, & Test RegEx[^] is a great website on the subject. There is also Expresso Regular Expression Tool[^].
-
UPDATE DONE "Match any number of characters , (from start of the line) , until "new line \n " is reached : QRegularExpression re( ".*\n"); TODO match first word only (of each line ) match the entire text (first word of each line ) I am VERY sorry to be such bother, but I am actually looking for someone / somebody willing to help me to interpret ( read) the Linux regular expression manual to build the expression. My task is to match each and every FIRST word in multi-line string . I am stuck at "\w+" which matches EVERY word in the entire text I can post my current code when I get "I am willing help you..." response Thank you very much for understanding . Sal
-
Salvatore Terress wrote:
using non C++ tool
I am guessing that you meant you found another solution so you did not need to use C++. Because you can certainly build an interpreter and/or a regex engine using C++.