once_cell icon indicating copy to clipboard operation
once_cell copied to clipboard

update `regex!` to support multiple regexes and `expr`s

Open vidhanio opened this issue 2 years ago • 2 comments

adding multiple regexes in the macro will return a tuple with all the regexes, and also allow using an expr to compile into the regex. this leaves the original api untouched, only adding more features.

vidhanio avatar Jul 20 '22 21:07 vidhanio

This is an example, so I’d rather keep it simple rather than featerful.

matklad avatar Jul 20 '22 21:07 matklad

i guess that does make sense, but in my opinion it doesn't add too much visual complexity to the documentation (although i admit the description could maybe use some work).

vidhanio avatar Jul 20 '22 22:07 vidhanio