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

Search and replace using capture group does not work #4502

Closed
mjmayer opened this issue Jan 16, 2020 · 3 comments
Closed

Search and replace using capture group does not work #4502

mjmayer opened this issue Jan 16, 2020 · 3 comments

Comments

@mjmayer
Copy link

mjmayer commented Jan 16, 2020

Describe the bug
Search and replace when using capturing groups does not work

To Reproduce
Text in file: Hello World
Search and replace command: s/Hello \(World\)/\1
Results: No regex match

Expected behavior
In vim 7.4.629 with the text Hello World, the search and replace command, s/Hello \(World\)/\1, yields the resulting text of World

Environment
Extension version: 1.12.4
VS Code version: Code 1.41.1 (26076a4de974ead31f97692a0d32f90d735645c0, 2019-12-18T15:04:31.999Z)
OS version: Linux x64 5.0.0-32-generic

@J-Fields
Copy link
Member

Probably related to #3996

@mjmayer
Copy link
Author

mjmayer commented Jan 16, 2020

This does look like it is related to using the javascript regex. I was able to get the search and replace working with this command: s/Hello (World)/$1.

@J-Fields
Copy link
Member

Closing as duplicate of #3996

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

No branches or pull requests

2 participants