BUG #18956: Observing an issue in regexp_count()

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: anudeepvattikonda0404(at)gmail(dot)com
Subject: BUG #18956: Observing an issue in regexp_count()
Date: 2025-06-12 08:03:25
Message-ID: 18956-9169151921910054@postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 18956
Logged by: Anudeep Vattikonda
Email address: anudeepvattikonda0404(at)gmail(dot)com
PostgreSQL version: 17.5
Operating system: Mac
Description:

Hi
I am trying to run the below query
select REGEXP_COUNT('cat at the flat', '\Bat\b') ;
I was expecting it to return 2 but I see Postgres is returning 0. I see that
there are two matches, cat and flat. All it should do is to look for the
word at whose left side shoudn't be a word boundary while the right side
should be a word boundary
Thank you

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2025-06-12 08:03:27 Re: BUG #18944: Assertion Failure in psql with idle_session_timeout Set
Previous Message Anthonin Bonnefoy 2025-06-12 07:38:41 Re: BUG #18944: Assertion Failure in psql with idle_session_timeout Set