You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you're working with non-utf8 bytes, [u8]; look at the bytes submodule in the Regex crate. This will avoid a bunch of the mess inside each match arm that's trying to conver to strings and back.
avoid compiling the regex each time around the loop, using the lazy_static! method noted in the regex docs.
The text was updated successfully, but these errors were encountered:
Two tips for regex usage:
[u8]
; look at thebytes
submodule in theRegex
crate. This will avoid a bunch of the mess inside each match arm that's trying to conver to strings and back.lazy_static!
method noted in the regex docs.The text was updated successfully, but these errors were encountered: