Re: Regular Expressions - Mailing list pgsql-sql

From Guy Fraser
Subject Re: Regular Expressions
Date
Msg-id 1174487806.26600.15.camel@sigurd.incentre.net
Whole thread Raw
In response to Regular Expressions  ("Ezequias R. da Rocha" <ezequias@fastcon.com.br>)
Responses Re: Regular Expressions
List pgsql-sql
On Wed, 2007-03-21 at 11:04 -0300, Ezequias R. da Rocha wrote:
> Hi list,
> 
> I would like to know if postgresql has a Regular Expressions (Regex) 
> implemented already.
> 
> With it we could implement queries like
> 
> Select * from myClientes where name = 'E[zs]equias'
> 
Case Sensitive Regular Match ~
Case Insensitive Regular Match ~*
Negated Case Sensitive Regular Match !~
Negated Case Insensitive Regular Match !~*

Select * from myClientes where name ~ 'E[zs]equias'

> where the result occurs even if the field has Ezequias or Esequias.
> 
> Regards
> Ezequias
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
> 
-- 
Guy Fraser
Network Administrator
The Internet Centre
1-888-450-6787
(780)450-6787




pgsql-sql by date:

Previous
From: Bricklen Anderson
Date:
Subject: Re: Regular Expressions
Next
From: Tom Lane
Date:
Subject: Anyone still using the sql_inheritance parameter?