Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: recherche regular expression case-insensitive


  • From: "thomas.silvi" <thomas(dot)silvi(at)laposte(dot)net>
  • To: Francis Leboutte <f(dot)leboutte(at)algo(dot)be>
  • Cc: PostgreSQL FR <pgsql-fr-generale(at)postgresql(dot)org>
  • Subject: Re: recherche regular expression case-insensitive
  • Date: Tue, 29 Nov 2005 14:48:27 +0100
  • Message-id: <438C5C2B(dot)1010809(at)laposte(dot)net>

Francis Leboutte a écrit :

> bonjour,
>
> Comment faire pour faire une recherche à l'aide d'une expression
> régulière qui soit non sensible à la casse ? Par exemple que faut-il
> ajouter dans la requête suivante pour ça ?
>
> select framename from axiom
>  where code similar to '%molecule%'


une solution qui me vient a l'esprit mais qui n'est pas forcement belle
(ca peut debloquer temporairement)

select framename from axiom
where *LOWER*(code) similar to '%molecule%'


Thomas

>
> J'ai besoin d'utiliser les expressions régulières pour des choses plus
> complexes comme ceci (je ne peux utiliser like et ilike) :
>
> select framename from axiom
>  where code similar to
>  '%[[:space:][:punct:])(\f\n\r\t]molecule[[:space:][:punct:])(\f\n\r\t]%'
>  limit 252
>
> Merci d'avance,
>
> -- 
> Francis Leboutte
> Algorithme, Rue de la Charrette 141, 4130 Tilff (Esneux), Belgique
> Service en informatique
>   f(dot)leboutte(at)algo(dot)be
>   www.algo.be
>   +32-(0)4.388.3919
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
>       message can get through to the mailing list cleanly
>




Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group