TiloBox
Back to directory
Comby project preview

Comby

A tool for structural code search and replace that supports every language.

LicenseApache-2.0
GitHub stars3.2k
Last commit1 weeks ago
Tags5 topics
Refactoring ToolStructural Search ReplaceTemplate MatchingOcamlDeveloper Tools
Overview

Why consider Comby?

Comby is a structural code search and replace tool written in OCaml. Unlike regular expressions that struggle with nested brackets and string quotes, Comby matches structural code templates (e.g. `foo(:[arg1], :[arg2])`) reliably across all programming languages.

Guided learning

Learn Comby by building

Practical setup notes, real use cases, and copy-ready examples in one focused guide.

1 min read 2 sections
In this guide2 sections

Overview of Comby

Comby performs multi-line structural code refactoring without complex regex escape sequences.

Quickstart

bash
1# Install Comby CLI
2bash <(curl -sL get.comby.dev)
3
4# Replace print statements
5comby 'printf(":[msg]")' 'log_info(":[msg]")' .c -i

Comby is licensed under the Apache License Version 2.0.

Related tools

More options with a similar category or technology profile.

Comby FAQs

Comby is listed as a Developer Tools tool on TiloBox. Review the overview, features, and official documentation on this page to decide whether it solves your specific workflow.

Start with the project's GitHub repository and official website for supported installation and deployment instructions. Test the setup with representative data or a small project before rolling it out more widely.

Comby is listed under the Apache-2.0 license. Read the complete license text and the project's notices before using, modifying, or distributing the software.

Production readiness depends on your requirements. Review maintenance activity, security practices, documentation, backup and upgrade procedures, and compatibility with your stack; then validate it in a non-production environment.

Comby is listed as an alternative to sed. Compare the core workflow, deployment model, integrations, and licensing against your must-have requirements before switching.