update rust snippets with regex definitions