You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// will get result
re, err := regexp2.Compile(s, regexp2.Singleline)
// will not get result
re, err := regexp2.Compile(s, regexp2.Singleline|regexp2.RE2)
Why?
The text was updated successfully, but these errors were encountered:
This is because of #24. With RE2 option in Singleline mode we change \Z and $ to mean "End of String" -- so the extra \n at the end prevents a match (which matches the RE2 behavior). The .NET engine behavior is a bit different and allows the trailing \n.
Why?
The text was updated successfully, but these errors were encountered: