-
Notifications
You must be signed in to change notification settings - Fork 2.1k
string replace: Regular expression substitute error: requested value is not set #7343
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
Comments
"perl-compatible" as in "uses PCRE2" (which also explicitly calls itself "Perl-compatible"). That's where the error comes from, so I don't think there is anything for us to do here. |
@planet36 you can try reporting this to the PCRE bug tracker |
|
Here's a simpler example
Output
|
Okay, it turns out there's an option for this:
|
Version info
fish --version
echo $version
uname -a
echo $TERM
Description
string replace
prints an error when I try to substitute a back reference to an optional capture group that was not matched.Steps to reproduce
Fish
Output
Perl
Output
I expected
string replace
to behave similar to perl because the docs mention "Perl-compatible" regular expressions.The text was updated successfully, but these errors were encountered: