Derive some useful regex methods on a struct or enum, given a pattern, optionally capturing data.
See the documentation for more!
adhoc_derive provides a similar derive macro, but with some different structure/options.
adhoc_derive