PL/TCL regex string matching - Mailing list pgsql-general

From Marcin Mazurek
Subject PL/TCL regex string matching
Date
Msg-id 20001120181608.A4085@poznan.mtl.pl
Whole thread Raw
Responses Re: PL/TCL regex string matching  ("Robert B. Easter" <reaster@comptechnews.com>)
List 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/

pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: PL/Perl on Solaris
Next
From: "Robert B. Easter"
Date:
Subject: Re: PL/TCL regex string matching