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

Regex replace doesn't work if match line is more than 999 #32522

Closed
NishiokaTakeo opened this issue Aug 15, 2017 · 3 comments
Closed

Regex replace doesn't work if match line is more than 999 #32522

NishiokaTakeo opened this issue Aug 15, 2017 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug editor-find Editor find operations verified Verification succeeded

Comments

@NishiokaTakeo
Copy link

Hi there.
I am having issue that vscode doesn't replace using regex properly if matched line is over the 999.
Also only first line is replaced even if I pressed "Replace All"

  • VSCode Version: 1.14.2
  • OS Version: Windows8

Steps to Reproduce:

1.create random lines more than 999. in my case I have 6567 lines I want to replace.
2.replace using Regex. my case is that I tried to add ",'" all lines. target "^" , replace ",'"
3. then Press "Replace All".

screenshot_081517_010827_pm

That happens is only first line is replaced .
screenshot_081517_011303_pm

then keep press "Replace All" then....

screenshot_081517_011347_pm

@vscodebot vscodebot bot added editor editor-find Editor find operations labels Aug 15, 2017
@rebornix rebornix added the bug Issue identified by VS Code Team member as probable bug label Aug 15, 2017
@ToMakeSense
Copy link

ToMakeSense commented Aug 18, 2017

This issue does exist, Sublime Text 3 works fine on this. I have a workaround:
ctrl+F with regex ^.{1,}$ then Alt+Enter to select all the matches, then press Home key making cursor stop at the begin of each line, then input ,'. done!

@Kimi-Arthur
Copy link

Happens to me too. But doesn't require regex? Normal replacement may fail in a similar way.

@broken-causality
Copy link

I run into the same issue on macOS

VSC v1.15.1
macOS 10.12.6

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug editor-find Editor find operations verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

7 participants