-
Notifications
You must be signed in to change notification settings - Fork 29
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
Replacement doesn't work as expected #186
Comments
We do not support \v modifier. Also it is possible to do We need to implement better error messages/hints to show which mode of regular expressions is activated. Do you think it would be useful to support |
@djsjo the attached pull request improves support for vim style regular expressions and informs user that regex mode can be changed. Could you try it on https://raw.githack.com/replit/codemirror-vim/verymagic/dev/web-demo.html and let us know if there are any issues. Thanks! |
I will check it out in the middle of next week and report to you. Thanks |
@nightwing everything works as anticipated and the feedback is very helpful. But when I set ":set nopcre" and then |
In your example you did not escape the brace in Also how should |
Problem
I have some lines with times like:
11:30
11:45
12:00
12:15
and wanted to replace them with the same value + a colon and a space.
Used Command
:%s/\v(\d{2}:\d{2})/\1: /gc
Expected Results:
The accordings lines are replaced with the colon counterpart. Tested in "real" vim and it works.
Actual Results
Tested in codemirror.net
Getting the Information "No matches for \v(\d{2}:\d{2})" .
The text was updated successfully, but these errors were encountered: