Inside the Regex Engine

From: david(at)fetter(dot)org (David Fetter)
To: pgsql-hackers(at)postgresql(dot)org
Subject: Inside the Regex Engine
Date: 2003-12-03 01:52:57
Message-ID: a7KcncurqMNk3FCiXTWc-w@speakeasy.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Kind people,

As a perl weenie, I'm used to being able to do things with regexes
like

$text =~ s/(foo|bar|baz)/NO UNIX WEENIES HERE/;
$got_it = $1;

While PL/Perl is great, it's not available everywhere, and I'd like to
be able to grab atoms from a regex match in, say, a SELECT. Is there
some way to get access to them?

TIA for any pointers on this :)

Cheers,
D
--
David Fetter david(at)fetter(dot)org http://fetter.org/
phone: +1 510 893 6100 cell: +1 415 235 3778

Civil government, so far as it is instituted for the security of
property, is in reality instituted for the defense of the rich against
the poor, or of those who have some property against those who have
none at all.
Adam Smith

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message greg 2003-12-03 03:17:09 Re: ALTER SEQUENCE enchancement
Previous Message Claudio Natoli 2003-12-03 01:36:59 fork/exec problem: DynaHashCxt