pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: anudeepvattikonda0404@gmail.com
Subject: BUG #18956: Observing an issue in regexp_count()
Date: Thu, 12 Jun 2025 08:03:25 +0000
Message-ID: <18956-9169151921910054@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18956
Logged by:          Anudeep Vattikonda
Email address:      anudeepvattikonda0404@gmail.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



view thread (4+ messages)  latest in thread

Message-ID: <18956-9169151921910054@postgresql.org>
Permalink:  ../18956-9169151921910054@postgresql.org/
Also on:    postgresql.org/message-id/18956-9169151921910054@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, anudeepvattikonda0404@gmail.com
  Subject: Re: BUG #18956: Observing an issue in regexp_count()
  In-Reply-To: <18956-9169151921910054@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox