Notepad3
                                
                                
                                
                                    Notepad3 copied to clipboard
                            
                            
                            
                        $ regex matching when it shouldn't, for cr+lf
A regex to find character X in the middle of a line, but not the start or end:   ^.+X.+$
This matches the line thisXthat
but also matches the line XhelloX
It should not match the latter line.
As a second example, this regex:   A.$  should match two characters however for text
A
AA
AAA
all lines match. The problem seems to exist when using CR+LF but not when using LF. Enabling Show Line Endings for this example shows some of the problem.