This is actually fine, but the inner regex could be lifted out. @gklopper is going for a specific edition-based pattern match.