Results 1 to 20 of 20

Thread: Help with regular expression

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #18
    Join Date
    Apr 2011
    Posts
    31
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Help with regular expression

    Looks like you all did not read problem carefully... Your suggestions are not applicable. The main task is highlight keywords in the text. That means - not the presence of word in text must be confirmed. Instead the position of text to highlight must be encountered. Split list is absolutely useless in this case. It only can confirm or decline the presence of keyword inside text. But cannot give it's index.

    Again - I have a list of keywords. They must be found in QString to know their positions inside this string. The set of delimiters is also known. Anybody more familiar can help?

    BTW: looks like both previous "helpers" even don't know how highlighter in Qt works...
    Last edited by Gourmet; 11th August 2011 at 12:51.

Similar Threads

  1. Regular Expression Problem
    By kaushal_gaurav in forum Qt Programming
    Replies: 2
    Last Post: 27th February 2009, 10:41
  2. set a regular expression on QTextEdit
    By mattia in forum Newbie
    Replies: 3
    Last Post: 27th March 2008, 11:16
  3. Regular expression in QLineEdit?
    By vishal.chauhan in forum Qt Programming
    Replies: 3
    Last Post: 1st October 2007, 11:58
  4. Find with Regular Expression?
    By vishal.chauhan in forum Qt Programming
    Replies: 1
    Last Post: 1st August 2007, 15:44
  5. How to get a QString from a file (use regular expression)
    By fengtian.we in forum Qt Programming
    Replies: 16
    Last Post: 31st May 2007, 12:06

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.