-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
RegexOptions.Multiline not matching text #40577
Comments
Can you please try to minimize the repro code/pattern/text? Like last time, this often makes things clearer. |
@danmosemsft Hi! The text is just above.
|
Yes thanks I see that I’m asking you to minimize the pattern please. |
Oops, sorry. Here is the simplified version:
The issue is that RegexOptions.Multiline doesn't get rid of \r so it matches 1 character too much. |
Right, it only understands \n. The complete description is here: I’m going to close this as it’s working as designed. The AnyNewLine feature would help! |
Description
^(?:[a-zA-Z]:|\\[\w.]+\[\w.$]+)\(?:[\w]+\)*\w([\w.])+$
Configuration
Regression?
No.
Other information
The text was updated successfully, but these errors were encountered: