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
No problem. The ECMAScript option does change the character classes to match ECMAScript/JavaScript and it just so happens that ECMAScript \d and \w matches the same chars as Go's RE2 engine. However, \s does not contain the exact same chars in RE2 and ECMAScript.
It makes sense to use the RE2 char class definitions for all 6 (\s\w\d plus negates) if option RE2 is used. Forcing the ECMAScript option isn't ideal.
It looks like
\d
matches߀
(\u07c0
) with regexp2, but not with the standard library regexp.See the following example:
Perhaps this is a known issue, but I'm wondering if there is a way to get additional compatibility with the standard library.
The text was updated successfully, but these errors were encountered: