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 matches newline when it shouldn't #157

twanvl opened this Issue Dec 18, 2017 · 0 comments


None yet
1 participant

twanvl commented Dec 18, 2017

In the block mode [^\n] also matches '\n'. Here is a minimal example:

"--\ny" *=~/ [edBlockSensitive|--[^\n]*///|]

This gives "", expected output is y. Using ed does give the expected result.

Conversely, in the non-block mode, . does not match \n, while the documentation claims that the mode only affects ^ and $.

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