-
Notifications
You must be signed in to change notification settings - Fork 445
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
Add method to get full match from Captures
#1146
Comments
I think this is probably a good idea. I added an analogous method (among others) to the lower level I'm not sure |
Yeah, I'm not sure |
A potential other name could be |
Describe your feature request
Add a method to
regex::Captures
that is equvalent to (or even just this implementation):Getting the full match is a very common operation, and although the documetation for
Regex::get
says that getting the result at index 0 will always returnSome
, that property isn't reflected in the type system. And adding a method like this would expose that guarantee through the type of the public API.The text was updated successfully, but these errors were encountered: