Open kuraga opened 1 month ago
I can reproduce this. Using "Replace" button it works as expected, using "Replace All" it does not. FYI this is implemented in JupyterLab repo here:
and replacing a single match is here:
I do not immediately see where the error is. It would be good to also attempt reproducing in JupyterLab 4.3/Notebook 7.3 once these are released (soon).
Heads up: the upstream issue was closed (https://github.com/jupyterlab/jupyterlab/issues/16925) and fixes will be backported to 4.3.x
Ok, thanks!
Description
On Find and Replace, using Regular Expressions, using Replace All, reference groups are NOT handled correctly.
Reproduce
Find and Replace
dialog.Replace
part.Use Regular Expressions
button.: (\d+),
at theFind
input.: $1+1,
at theReplace
input.Replace All
button.At the same time, the
Replace
-button single replaces work as expected.Expected behavior
On Find and Replace, using Regular Expressions, using Replace All, reference groups are handled correctly.
Context