Results 1 to 2 of 2

Thread: Sed/AWK-like

  1. #1
    Join Date
    Jun 2007
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Sed/AWK-like

    Is there a way to do easy sed/awk-like operations? I'm not the biggest regexp-wiz, and the output always has the same number of words, just maybe with different spellings and languages. However the useful information is always at the same place in the string (the same number of words, not characters from the start).
    e.g. I want the 6th word in a string.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Sed/AWK-like

    Just to get you going: QString::split, QString::mid.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.