Results 1 to 8 of 8

Thread: QRegExp Help; remove all html tag

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: QRegExp Help; remove all html tag

    You need something like:
    Qt Code:
    1. body.remove( QRegExp( "<(?:div|span|tr|td|br|body|html|tt|a|strong|p)[^>]*>", Qt::CaseInsensitive ) );
    To copy to clipboard, switch view to plain text mode 

  2. The following 2 users say thank you to jacek for this useful post:

    patrik08 (27th July 2006), tpf80 (3rd December 2009)

Similar Threads

  1. Replies: 6
    Last Post: 13th February 2014, 13:46
  2. need help for my QRegExp
    By patcito in forum Qt Programming
    Replies: 1
    Last Post: 27th May 2006, 17:29
  3. Replies: 1
    Last Post: 17th March 2006, 09:01
  4. [Qt 4.1]using html in QTextEdit from designer
    By patcito in forum Qt Programming
    Replies: 5
    Last Post: 16th January 2006, 23:36
  5. QSettings again ... how to remove array elements
    By Mike in forum Qt Programming
    Replies: 4
    Last Post: 11th January 2006, 09:58

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.