> On Mar 2, 2021, at 5:34 AM, Isaac Morland <isaac.morl...@gmail.com> wrote: > > Returning to the RE result issue, I wonder how much it actually matters where > any empty matches are. Certainly the actual contents of the match don’t > matter; you don’t need to be able to index into the string to extract the > substring. The only scenario I can see where it could matter is if the RE is > using lookahead or look back to find occurrences before or after something > else. If we stipulate that the result array will be in order, then you still > don’t have the exact location of empty matches but you do at least have where > they are relative to non-empty matches. I agree the contents of the match don't matter, because they are always empty. But the position matters. You could intend to split a string in multiple places using lookaheads and lookbehinds to determine the split points. — Mark Dilger EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
- [PATCH] regexp_positions ( string text, pattern text, flags ... Joel Jacobson
- Re: [PATCH] regexp_positions ( string text, pattern tex... Mark Dilger
- Re: [PATCH] regexp_positions ( string text, pattern... Joel Jacobson
- Re: [PATCH] regexp_positions ( string text, pat... Isaac Morland
- Re: [PATCH] regexp_positions ( string text,... Joel Jacobson
- Re: [PATCH] regexp_positions ( string ... Isaac Morland
- Re: [PATCH] regexp_positions ( str... Joel Jacobson
- Re: [PATCH] regexp_positions (... Isaac Morland
- Re: [PATCH] regexp_positions (... Joel Jacobson
- Re: [PATCH] regexp_positions ( str... Mark Dilger
- Re: Re: [PATCH] regexp_positions ( string text,... Tom Lane
- Re: [PATCH] regexp_positions ( string text,... Joel Jacobson
- Re: [PATCH] regexp_positions ( string text,... Joel Jacobson
- Re: Re: [PATCH] regexp_positions ( str... Tom Lane
- Re: [PATCH] regexp_positions ( str... Chapman Flack
- Re: [PATCH] regexp_positions ( str... Joel Jacobson
- Re: [PATCH] regexp_positions ( str... Gilles Darold
- Re: [PATCH] regexp_positions (... Joel Jacobson
- Re: [PATCH] regexp_positions (... Joel Jacobson
- Re: [PATCH] regexp_positions (... Pavel Stehule