Re: Is there any function to test for numeric ips?

Поиск
Список
Период
Сортировка
От Fernando Hevia
Тема Re: Is there any function to test for numeric ips?
Дата
Msg-id 52EA9FD8B55A43D7B06F4B97DCC88DFE@iptel.com.ar
обсуждение исходный текст
Ответ на Re: Is there any function to test for numeric ips?  ("Fernando Hevia" <fhevia@ip-tel.com.ar>)
Список 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 по дате отправления:

Предыдущее
От: Harald Fuchs
Дата:
Сообщение: Re: Is there any function to test for numeric ips?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Is there any function to test for numeric ips?