Skip to content

Instantly share code, notes, and snippets.

@ebresafegaga
Last active December 23, 2022 09:57
Show Gist options
  • Save ebresafegaga/1c45708d721e02b5143df922934ab5c7 to your computer and use it in GitHub Desktop.
Save ebresafegaga/1c45708d721e02b5143df922934ab5c7 to your computer and use it in GitHub Desktop.
Path
let path: String = path.chars().skip_while(|ch| !(ch.is_alphanumeric() || *ch == '-' || *ch == '_')).collect();
//
// ("Paren before ident", "(record", vec!["record"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment