Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. UPDATE REPOST BUMP How to construct / build / interpret regular expression ?

UPDATE REPOST BUMP How to construct / build / interpret regular expression ?

Scheduled Pinned Locked Moved C / C++ / MFC
regexhelplinuxtutorialquestion
4 Posts 2 Posters 10 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    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

    L J 2 Replies Last reply
    0
    • L Lost User

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      RegExr: Learn, Build, & Test RegEx[^] is a great website on the subject. There is also Expresso Regular Expression Tool[^].

      1 Reply Last reply
      0
      • L Lost User

        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

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #3

        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++.

        L 1 Reply Last reply
        0
        • J jschell

          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++.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Thanks for reply. I have riposted this, hoping for help with constructing with C++ reg expression .

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups