# example ```rust use regexp2rust_macro::regex2rust; regex2rust!( foo = "12345(?123)" "ui"); assert_eq!(foo::exec(" 12345123"),[Some([1,9]),Some([6,9])]); assert_eq!(foo::Group::abc as usize,1usize); assert_eq!(foo::exec(" 12345123")[foo::Group::abc as usize],Some([6,9])); ``` # for workspace ```toml #Cargo.toml [workspace] members = ["yourcrate"] resolver = "2" ```