regexp_replace weirdness amounts to a bug? - Mailing list pgsql-hackers

From Erik Rijkers
Subject regexp_replace weirdness amounts to a bug?
Date
Msg-id 8371a323-d44c-0790-c018-603753023140@xs4all.nl
Whole thread Raw
Responses Re: regexp_replace weirdness amounts to a bug?
Re: regexp_replace weirdness amounts to a bug?
List pgsql-hackers
Hello,

The following surprised me enough to think it might be a bug:
(17devel)

select
    regexp_replace('Abc Def'
   , '([a-z]) ([A-Z])'
   , '\1 ' || lower('\2')  );

regexp_replace
----------------
  Abc Def
(1 row)

-- 'Abc Def' got
-- 'Abc def' expected

What do you think?

Thanks,

Erik Rijkers




pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: pgbench - adding pl/pgsql versions of tests
Next
From: Malthe
Date:
Subject: Re: regexp_replace weirdness amounts to a bug?