[{"data":1,"prerenderedAt":119},["ShallowReactive",2],{"blog-post-ripgrep-case-insensitive-search":3,"recent-posts":73},{"id":4,"uid":5,"url":6,"type":7,"href":8,"tags":9,"first_publication_date":10,"last_publication_date":10,"slugs":11,"linked_documents":13,"lang":14,"alternate_languages":15,"data":16},"awgi2hIAACoAhiaF","ripgrep-case-insensitive-search",null,"blog_posts","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=axNCmBMAACwA2vJJ&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22awgi2hIAACoAhiaF%22%29+%5D%5D",[],"2026-12-04T22:45:44+0000",[12],"ripgrep-how-to-search-case-insensitive",[],"en-us",[],{"title":17,"date":23,"description":24,"image":29,"content":39},[18],{"type":19,"text":20,"spans":21,"direction":22},"heading1","Ripgrep: How to Search Case Insensitive",[],"ltr","2026-12-04",[25],{"type":26,"text":27,"spans":28,"direction":22},"heading2","Learn how to run a case-insensitive search with ripgrep (rg)",[],{"dimensions":30,"alt":20,"copyright":6,"url":33,"id":34,"edit":35},{"width":31,"height":32},1280,720,"https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002F6H2DfjROfkSO4wel_ripgrep-case-insensitive-search.png?auto=format,compress","6H2DfjROfkSO4wel",{"x":36,"y":36,"zoom":37,"background":38},0,1,"transparent",[40,44,48,51,54,57,60,63,66,70],{"type":41,"text":42,"spans":43,"direction":22},"paragraph","Before we start, make sure you have ripgrep installed on your computer. On a Mac, you can install it with Homebrew:",[],{"type":45,"text":46,"spans":47,"direction":22},"preformatted","brew install ripgrep",[],{"type":41,"text":49,"spans":50,"direction":22},"By default, ripgrep is case-sensitive, so searching for \u003Ccode>storage\u003C\u002Fcode> won't find \u003Ccode>localStorage\u003C\u002Fcode>. To ignore case, open your terminal, go to your project folder and run:",[],{"type":45,"text":52,"spans":53,"direction":22},"rg -i \"pattern\"",[],{"type":41,"text":55,"spans":56,"direction":22},"The \u003Ccode>-i\u003C\u002Fcode> flag is short for \u003Ccode>--ignore-case\u003C\u002Fcode>, so capitals and lowercase count as the same letter. In my demo, that took the search from 3 matches to 7.",[],{"type":41,"text":58,"spans":59,"direction":22},"There's also smart case, with a capital \u003Ccode>-S\u003C\u002Fcode>:",[],{"type":45,"text":61,"spans":62,"direction":22},"rg -S \"pattern\"",[],{"type":41,"text":64,"spans":65,"direction":22},"With \u003Ccode>-S\u003C\u002Fcode>, an all-lowercase pattern ignores case, but as soon as your pattern contains a capital letter, the search becomes case-sensitive again. Just be careful with a lowercase \u003Ccode>-s\u003C\u002Fcode>: it does the opposite and forces a case-sensitive search.",[],{"type":67,"oembed":68},"embed",{"embed_url":69,"type":67},"",{"type":41,"text":71,"spans":72,"direction":22},"To make smart case your default, add \u003Ccode>--smart-case\u003C\u002Fcode> to a \u003Ccode>~\u002F.ripgreprc\u003C\u002Fcode> file and point the \u003Ccode>RIPGREP_CONFIG_PATH\u003C\u002Fcode> environment variable at it in your \u003Ccode>~\u002F.zshrc\u003C\u002Fcode>.",[],{"results":74,"page":37,"results_per_page":117,"results_size":117,"total_results_size":118,"total_pages":37},[75,95,97],{"id":76,"uid":77,"url":6,"type":7,"href":78,"tags":79,"first_publication_date":10,"last_publication_date":10,"slugs":80,"linked_documents":82,"lang":14,"alternate_languages":83,"data":84},"awgi0RIAACYAhiZv","ripgrep-replace-text-in-files","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=axNCmBMAACwA2vJJ&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22awgi0RIAACYAhiZv%22%29+%5D%5D",[],[81],"how-to-replace-text-in-files-with-ripgrep-and-sed",[],[],{"image":85,"title":91},{"dimensions":86,"alt":87,"copyright":6,"url":88,"id":89,"edit":90},{"width":31,"height":32},"Ripgrep: How to Replace Text in Files with Ripgrep and Sed","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FOlJ7le5oNEXxcE_I_ripgrep-replace-text-in-files.png?auto=format,compress","OlJ7le5oNEXxcE_I",{"x":36,"y":36,"zoom":37,"background":38},[92],{"type":19,"text":93,"spans":94,"direction":22},"How to Replace Text in Files with Ripgrep and Sed",[],{"id":4,"uid":5,"url":6,"type":7,"href":8,"tags":9,"first_publication_date":10,"last_publication_date":10,"slugs":11,"linked_documents":13,"lang":14,"alternate_languages":15,"data":96},{"image":29,"title":17},{"id":98,"uid":99,"url":6,"type":7,"href":100,"tags":101,"first_publication_date":10,"last_publication_date":10,"slugs":102,"linked_documents":104,"lang":14,"alternate_languages":105,"data":106},"awgi_hIAACoAhibc","jq-use-with-curl","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=axNCmBMAACwA2vJJ&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22awgi_hIAACoAhibc%22%29+%5D%5D",[],[103],"how-to-use-jq-with-curl",[],[],{"image":107,"title":113},{"dimensions":108,"alt":109,"copyright":6,"url":110,"id":111,"edit":112},{"width":31,"height":32},"jq: How to Use jq with curl","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002F3JyqU0cTsv3S-6D0_jq-use-with-curl.png?auto=format,compress","3JyqU0cTsv3S-6D0",{"x":36,"y":36,"zoom":37,"background":38},[114],{"type":19,"text":115,"spans":116,"direction":22},"How to Use 'jq' with 'curl'",[],3,137,1796424369380]