The ^ and $ are not part of the matched expression, but boundaries to constrain the matching.

Therefore I think the current behaviour is more intuitive for one working with regular expressions. Note that the end of string can be either \r, \n or 0x0 -- your proposal to add after the boundary constraint can mean that for other cases should be added after 0x0.

You can eventually add a new function, but the current one should stay as it is (or get new parameters to control the behaviour).


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.