-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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 find does not match on beginning and end of lines (missing multiline flag?) #11572
Comments
This does not work as expected in September (insiders build).
It looks as if |
@erikbra Thanks for reporting.. I will investigate this empty lines case. |
Hi. Thanks for looking into this.
I have attached screenshots from another editor (Sublime, but this is common on all other regex-aware editors) which demonstrates the difference. Test text used:
|
Maybe this is the problem? Looks like you do some sort of single/multi-line optimization on regexes? #9051 (comment) |
@erikbra I will have to check and confirm you. Thanks. |
Steps to Reproduce:
^\s*$\n
(should match empty lines)^A.*B$
(should match every line starting with A and ending with B (e.g.A****************B
)Ref. issue #313, which is closed, but in essense the same, or at least very similar.
Esp. @alexandrudima 's comment, stating that this might be to a missing multiline flag passed to the Javascript regex engine.
#313 (comment)
The text was updated successfully, but these errors were encountered: