PDA

View Full Version : QRegExp IP Address[SOLVED]



^NyAw^
26th March 2012, 10:53
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