Regular question: ^ aaa$ doesn't match?

text:

s
aaa
s

cannot match aaa with ^ aaa$ . Multiline mode has been enabled and changed to ^ aaa . Doesn"t $ match the end of the line? Ask for advice.

do I have a .net BUG?


regexr.com and regex101.com tests indicate that there is no such problem


personal testing can be done on chrome

`s
aaa
s
`.match(/^aaa$/gm)

clipboard.png


$,
clipboard.png


Thank you for your answers. I know why. This is a problem in the .net project. See
https://stackoverflow.com/que.
https://docs.microsoft.com/en.
in .net $ matches only \ n . It does not match \ r , so the way to make sure that bie is niu is ^ aaa\ rpm $.
I really have no idea which fairy made the setting. The funny thing is that the default line break for windows is \ r\ n , even if you don't recognize yourself as drunk.

Menu