Patch: regexp_matches variant returning an array of matching positions - Mailing list pgsql-hackers

From Björn Harrtell
Subject Patch: regexp_matches variant returning an array of matching positions
Date
Msg-id CANhDX=bc5VnJVByefeDu5+Kaxd7jsAb1R9JQDSzF=w1eRiEZ6Q@mail.gmail.com
Whole thread Raw
Responses Re: Patch: regexp_matches variant returning an array of matching positions  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
I've written a variant of regexp_matches called regexp_matches_positions which instead of returning matching substrings will return matching positions. I found use of this when processing OCR scanned text and wanted to prioritize matches based on their position.

The patch is for discussion. I'd also appriciate general suggestions as this is my first experience with the postgresql code base.

The patch is against the master branch and includes a simple regression test.
Attachment

pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: jsonb and nested hstore
Next
From: Greg Stark
Date:
Subject: Re: proposal: hide application_name from other users