Re: Is there any function to test for numeric ips? - Mailing list pgsql-sql

From Fernando Hevia
Subject Re: Is there any function to test for numeric ips?
Date
Msg-id 52EA9FD8B55A43D7B06F4B97DCC88DFE@iptel.com.ar
Whole thread Raw
In response to Re: Is there any function to test for numeric ips?  ("Fernando Hevia" <fhevia@ip-tel.com.ar>)
List pgsql-sql
 

> 
> You could filter IP out with a regular expression:
> 
> select hostname as hosts_not_ip
> from table
> where hostname !~ '^[0-9]\.[0-9]\.[0-9]\.[0-9]$'
> 

Oops, i missed something. Its:

select hostname as hosts_not_ip
from table
where hostname !~ '^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$'




pgsql-sql by date:

Previous
From: Harald Fuchs
Date:
Subject: Re: Is there any function to test for numeric ips?
Next
From: Alvaro Herrera
Date:
Subject: Re: Is there any function to test for numeric ips?