Re: [HACKERS] Inside the Regex Engine

2003-12-04 Thread David Fetter
Tom Lane <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] (David Fetter) writes: >> 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? > > There's a three-parameter variant

Re: [HACKERS] Inside the Regex Engine

2003-12-03 Thread David Fetter
Andrew Dunstan <[EMAIL PROTECTED]> wrote: > Tom Lane wrote: > >>[EMAIL PROTECTED] (David Fetter) writes: >> >> >>>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? >>

Re: [HACKERS] Inside the Regex Engine

2003-12-03 Thread Andrew Dunstan
Tom Lane wrote: [EMAIL PROTECTED] (David Fetter) writes: 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? There's a three-parameter variant of substring() that allows

Re: [HACKERS] Inside the Regex Engine

2003-12-02 Thread Tom Lane
[EMAIL PROTECTED] (David Fetter) writes: > 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? There's a three-parameter variant of substring() that allows extraction of a p

Re: [HACKERS] Inside the Regex Engine

2003-12-02 Thread Alvaro Herrera
On Tue, Dec 02, 2003 at 07:52:57PM -0600, David Fetter wrote: > 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 gr

[HACKERS] Inside the Regex Engine

2003-12-02 Thread David Fetter
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