From: | PG Bug reporting form <noreply(at)postgresql(dot)org> |
---|---|
To: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
Cc: | devops(at)key2asset(dot)com |
Subject: | BUG #18870: weird behavior with regexp_replace |
Date: | 2025-03-27 13:43:50 |
Message-ID: | 18870-70cd953a0c92c20e@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged on the website:
Bug reference: 18870
Logged by: reinko
Email address: devops(at)key2asset(dot)com
PostgreSQL version: 17.4
Operating system: Ubuntu 11.4.0-1ubuntu1~22.04
Description:
select regexp_replace(LOWER('Örebro'), '\W', '_', 'g') in postgres 15 the
result is örebro which is correct since ö should fit in the \w for a
regex.
select regexp_replace(LOWER('Örebro'), '\W', '_', 'g') --> since postgres 17
the result is _rebro which is incorrect since \w should also contain
characters like ö, ä, ë.
the to lower is not really relevant to this issue the same happens when it's
just a direct string aswell.
this issue happens with alot of special a-z characters é, è have the same
issue for example.
Kind regards,
Reinko Brink
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2025-03-27 16:01:13 | Re: BUG #18866: Running pg_freespace() on views triggers an Abort |
Previous Message | Robins Tharakan | 2025-03-27 09:42:27 | Re: BUG #18832: Segfault in GrantLockLocal |