-
Notifications
You must be signed in to change notification settings - Fork 1
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
eval replacere fails to update regex vars if gosub'd #53
Comments
Typically there are not capture groups provided when doing a regex replace as you only care about the result of the replacement. What is the behavior you are expecting? Are you expecting the regex vars to be populated with the "pre replace" values or the "post replace" values? Pre replace: |
I'd expect the first output from running this script, not the second.
|
I'm guessing you would still expect other variables to be evaluated in that string?
|
Output 1 is what I would expect for both the gosub'd case and the non-gosub'd case, yes. So it's already kinda working, just not working properly if the replacere occurs after a gosub.
|
After a gosub that sends variables so that ($1,$2,etc) are updated, if you try to replacere those regex vars will not update
The text was updated successfully, but these errors were encountered: