Results 1 to 1 of 1

Thread: QRegExp IP Address[SOLVED]

  1. #1
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QRegExp IP Address[SOLVED]

    Hi,

    I'm trying to extract IP addresses from a text file. The RegExp that I'm using is this:
    "[0-9]{1,3}{1,1}[0-9]{1,3}{1,1}[0-9]{1,3}{1,1}[0-9]{1,3}"
    The IP addresses contains dots and I don't find the way to get the correct RegExp to work as "." means "match any character".

    Thanks,


    Added after 6 minutes:


    Hi,

    "[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}" as RegExp
    Last edited by ^NyAw^; 26th March 2012 at 10:53.
    Òscar Llarch i Galán

Similar Threads

  1. getting IP-address
    By jefklak in forum Qt Programming
    Replies: 2
    Last Post: 23rd October 2010, 09:19
  2. how can i get IP address
    By dognzhe in forum Qt Programming
    Replies: 1
    Last Post: 12th May 2009, 05:27
  3. IP Address
    By rajveer in forum Qt Programming
    Replies: 2
    Last Post: 11th November 2008, 08:30
  4. Replies: 0
    Last Post: 14th December 2007, 01:33
  5. Validating IP address [SOLVED]
    By deepakn in forum Newbie
    Replies: 0
    Last Post: 28th June 2007, 13:48

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.