search start/end of word with ripgrep
ripgrep doesn’t support the \< and \> word boundaries, which specifically only match the start and end of a word, respectively. ripgrep does however support \b, which matches a word boundary anywhere. In this case, it’s good enough for your specific example: $ echo ‘play allegro here’ | rg ‘\bleg\b’ $ echo ‘I have a … Read more