Results 1 to 3 of 3

Thread: QRegExp Help

  1. #1
    Join Date
    Mar 2007
    Posts
    16
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QRegExp Help

    Hi everyone,
    i need some help in QRegExp;
    in fact i have a file that i read in a QTextStream
    the file format is like this;

    login;passwor;status;surname;name
    login;passwor;status;surname;name
    login;passwor;status;surname;name
    login;passwor;status;surname;name

    i read every line till the end of file in a string str with my textstream ts;
    and i want to put everypart of my string that are separated by commas in different string variables for some test..
    i wanna know if it is good to use a QRegExp or try another simple methode, cause my file format is not very complicate for using a QRegExp..

    i need ur advises and if ur kind, a simple example...

  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: QRegExp Help


  3. The following user says thank you to wysota for this useful post:

    Ahmad (28th May 2007)

  4. #3
    Join Date
    Mar 2007
    Posts
    16
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QRegExp Help

    tnx, it was really simpler than what i thinked, tnx a lot

Similar Threads

  1. QRegExp lastIndexOf always minimal?
    By skyphyr in forum Qt Programming
    Replies: 3
    Last Post: 12th December 2006, 10:06
  2. QRegExp progblem
    By high_flyer in forum Qt Programming
    Replies: 1
    Last Post: 6th September 2006, 12:12
  3. QRegExp?
    By Marco812 in forum Qt Programming
    Replies: 3
    Last Post: 4th August 2006, 08:31
  4. need help for my QRegExp
    By patcito in forum Qt Programming
    Replies: 1
    Last Post: 27th May 2006, 16:29
  5. Trouble parsing using simple QRegExp
    By johnny_sparx in forum Qt Programming
    Replies: 4
    Last Post: 24th February 2006, 00:42

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.