Results 1 to 4 of 4

Thread: How to write a QRegExp for the following requirement?

  1. #1
    Join Date
    Sep 2013
    Posts
    33
    Thanks
    5
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Exclamation How to write a QRegExp for the following requirement?

    I want to write a QRegExp which should not include /\:*?"<>| these characters?
    please help..

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to write a QRegExp for the following requirement?

    Should not include them in what exactly? The matched string or the regular expression itself? What have you tried?

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    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: How to write a QRegExp for the following requirement?

    Hmm.... "[^/\\:*?\"<>|\]*]"?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Sep 2013
    Posts
    33
    Thanks
    5
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Exclamation Re: How to write a QRegExp for the following requirement?

    Quote Originally Posted by ChrisW67 View Post
    Should not include them in what exactly? The matched string or the regular expression itself? What have you tried?
    Want to set a validator for QlineEdit , which will not take input
    from key board, if above characters pressed.
    thanks in adv..

Similar Threads

  1. Qt 4.7.1 and sudden requirement of libgles_cm.lib (OpenGL ES)
    By FlashMuller in forum Installation and Deployment
    Replies: 1
    Last Post: 29th November 2010, 15:54
  2. Urgent qt requirement - finland.
    By Keir Pearcey in forum Jobs
    Replies: 1
    Last Post: 18th September 2010, 13:12
  3. Requirement for versatile image viewer
    By deekayt in forum General Discussion
    Replies: 1
    Last Post: 27th October 2006, 14:28

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.