Results 1 to 4 of 4

Thread: Can I use QRegExp to remove the extension of a file?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Can I use QRegExp to remove the extension of a file?

    I won't tell you how you can use a reg exp for that, because it is too heavy for a simple operation like that. Better use QString::lastIndexOf() with QString::chop().

  2. The following user says thank you to Lykurg for this useful post:

    ricardo (20th May 2009)

Similar Threads

  1. QFileDialog and file extension
    By calhal in forum Qt Programming
    Replies: 3
    Last Post: 9th March 2010, 12:54
  2. Using QRegExp For File Filtering
    By QbelcorT in forum Qt Programming
    Replies: 1
    Last Post: 5th April 2009, 09:02
  3. Remove Duplicate Lines in a file
    By nmuntz in forum Qt Programming
    Replies: 4
    Last Post: 12th January 2009, 00:04
  4. remove node in xml file
    By mattia in forum Newbie
    Replies: 1
    Last Post: 6th March 2008, 13:25
  5. QRegExp Help; remove all html tag
    By patrik08 in forum Qt Programming
    Replies: 7
    Last Post: 27th July 2006, 13:40

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.