April 22, 2022How to Cargo Install a Package With Additional FeaturesMeanwhile you may have heard that there are a couple of new CLI apps out there written in Rust - blazing fast and with additional features. While I rarely use them, as I do not want to get used to tools, which are not available on all Linux machines I work on, I do use ripgrep regularly, as it really makes a difference, especially in speed. Yesterday, I wanted to use ripgrep with PCRE2 (Perl Compatible Regular Expressions), but when I tried it, I got this error message:...
March 24, 2021How to Find Duplicate WordsWhen contributing to a new open source project, from time to time I searched the codebase for occurrences of the the. This is a common mistake in comments in English codebases. My friend Miroslav came up with an even better way: Use a regex to find duplicate words! rg --pcre2 "\b(\w+)\s+\1\b" rg stands for ripgrep, which is a blazing fast implementation of a regex command line tool, written in Rust....