We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Issue Type: Bug
Create a text file and add the following:
this is the first line of the document. this is the second one.
In the document, search for this:
(this is the first line)( of the document.)(\nthis is the second)( one.)
Replace the text with this:
$1$3
This gives the expected result.
Follow the exact same procedure with the Find in Files dialog. This works in the absence of newline characters:
As soon as the search is extended to contain a multiline pattern, the backreferences are printed explicitly and not interpolated:
These types of replacements definitely worked in version 1.29 with much more complicated replace patterns, even using optional groups.
The results are the same regardless of whether "search.usePCRE2": true is set (originally released in 1.29, but deprecated in 1.37).
"search.usePCRE2": true
VS Code version: Code 1.38.1 (b37e54c, 2019-09-11T13:31:32.854Z) OS version: Darwin x64 18.7.0
The text was updated successfully, but these errors were encountered:
Same here. Seems a duplicate of #80732, #80667, and #79924.
Sorry, something went wrong.
@ eduardZA Do you have the same behavior when there are multiple matches in single files?
Problem seems to be not present when 2 results shares any line.
@KapitanOczywisty, quite right:
It would seem as if matches separated by newlines are the ones struggling.
Dupe of #80667
rebornix
No branches or pull requests
Issue Type: Bug
Create a text file and add the following:
In the document, search for this:
Replace the text with this:
This gives the expected result.
Follow the exact same procedure with the Find in Files dialog. This works in the absence of newline characters:
As soon as the search is extended to contain a multiline pattern, the backreferences are printed explicitly and not interpolated:
These types of replacements definitely worked in version 1.29 with much more complicated replace patterns, even using optional groups.
The results are the same regardless of whether
"search.usePCRE2": true
is set (originally released in 1.29, but deprecated in 1.37).VS Code version: Code 1.38.1 (b37e54c, 2019-09-11T13:31:32.854Z)
OS version: Darwin x64 18.7.0
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Extensions (14)
The text was updated successfully, but these errors were encountered: