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
Looks like that second character class [a-zA-Z0-9-.] should have the - be interpreted as a character literal, or an error (since it's a special character when it's not in the first or last position of the character class), but it seems to be ignored entirely.
The last example seems to work intuitively: a possible match is a matches the first character class, b-c.d.e matches the second one (hyphen, a special character, is treated as literal since it's the last character in the character class).
The first example only matches a portion of the string, since that's how the regex is defined. So a possible match is b-c to the first character class, then d.e.
Based the comments on jruby/joni#14, it seems any example of a difference between Java pattern syntax and Joni should be considered a bug, so I'd consider raising an issue.
regexp_like behaves strangely. I'd expect 'true' in all the following cases, but on of them returns false. This is using JONI for regex library.
CC: @tdcmeehan @aditi-pandit @amitkdutta @zacw7 @kaikalur
The text was updated successfully, but these errors were encountered: