[Solved] Help using QRegExp



  • Hi all,

    I need some help with QRegExp.

    I need to find the character ' but I need to omit '

    I try the following QRegExp, but it does not work.

    @
    QRegExp("[^]'")
    @


  • Moderators

    Try
    @
    QRegExp("(^)|[^\\\]");
    @

    Matches * at beginning of line OR * not preceded by **
    Because of escaping, all \s are doubled to \



  • Thanks mlong,

    It helps a lot. :)

    Many thanks.


  • Moderators

    No problem! Be sure and retitle the thread as [Solved]. Thanks!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.