-
Notifications
You must be signed in to change notification settings - Fork 462
Method longest_match
#791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That's what (Well, technically |
And note also that |
I was confused about what Again sorry for the useless issue and thanks for the precision. |
There is
is_match
that checks if there is a match for the given string, there isshortest_match
that checks if there is a match and returns the length of the shortest match, but no method that checks if there is a match and returns the length of the longest match.Re-using the
shortest_match
example, we would have:The text was updated successfully, but these errors were encountered: