PL/TCL regex string matching

From: Marcin Mazurek <M(dot)Mazurek(at)poznan(dot)multinet(dot)pl>
To: pgsql-general(at)postgresql(dot)org
Subject: PL/TCL regex string matching
Date: 2000-11-20 17:16:08
Message-ID: 20001120181608.A4085@poznan.mtl.pl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
I'm trying to write a TCL function which uses regex string matching.
spi_exec "SELECT count(s.id) as res FROM services s
WHERE
s.name=''email account ([0-9+])MB''";

I'd like to match any service with name starting "email account " and quota
at the end.
I was trying to use ([0-9+]), (1,2) and some others that I've found in TCL
guides.
Is it possible to use regex in PL/TCL and can You show me with the exmaple
how?

tia
mazek

Marcin Mazurek

--
Kierownik Działu Systemowego
MULTINET SA o/Poznan
http://www.multinet.pl/

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Luis Magaa 2000-11-20 17:17:22 PostgreSQL as windows 2000 Service
Previous Message Wade D. Oberpriller 2000-11-20 17:06:34 Re: PL/Perl on Solaris