Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regexp_replace strips all substrings identical to the one matched by an expression with $, even if they aren't at EOL #23

Closed
Hurricos opened this issue Sep 27, 2021 · 1 comment

Comments

@Hurricos
Copy link

SELECT regexp_replace('2020-04-17 08:15:00-04', '-[0-9][0-9]$', '');

yields:

2020-17 08:15:00

.... whereas

SELECT regexp_replace('2020-05-17 08:15:00-04', '-[0-9][0-9]$', '');

yields

2020-05-17 08:15:00
@nalgeon
Copy link
Owner

nalgeon commented Sep 28, 2021

Fixed in 0.8.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants