Results 1 to 4 of 4

Thread: qregexp to check string

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    172
    Thanks
    39
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default qregexp to check string

    Hello, i have to validate this string "http://username:password@url:port" with a QRegExp.
    I want that my regExp control if the string start with "http://" and contain 3 ":" occurrences and 1 "@" occurrences.

    I get some problem to build the regExp, i started in this way:

    "^[http://]+[:]{3}+[@]{1}" but it does not work...any hint?
    Last edited by jpn; 19th February 2008 at 08:39. Reason: Disabled smilies

Similar Threads

  1. QRegExp Help
    By Ahmad in forum Qt Programming
    Replies: 2
    Last Post: 28th May 2007, 00:13
  2. Reading from sockets in a multithreaded program
    By KoosKoets in forum Qt Programming
    Replies: 9
    Last Post: 4th April 2007, 20:43
  3. saving a c string of variable length in a shared memory?
    By nass in forum General Programming
    Replies: 4
    Last Post: 3rd January 2007, 14:40

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.