srgn
« Back to VersTracker
Description:
Code surgeon for precise text and code transplantation
Type: Formula  |  Latest Version: 0.14.1@0  |  Tracked Since: Nov 21, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: cli developer-tools refactoring text-processing code-generation
Install: brew install srgn
About:
srgn is a specialized command-line tool for surgical text and code manipulation. It enables precise, pattern-based transformations on source code and structured text, acting as a powerful alternative to complex regex. Its main value is providing accuracy and safety in automated code refactoring and data cleaning tasks.
Key Features:
  • Surgical precision for code and text transformations
  • Powerful pattern matching beyond standard regex capabilities
  • Supports multiple programming languages (e.g., Python, Rust, Go)
  • Command-line interface for easy scripting and automation
Use Cases:
  • Automated code refactoring across large codebases
  • Data sanitization and cleaning in structured text files
  • Bulk renaming or reformatting of symbols in source code
Alternatives:
  • sed – srgn offers more intelligent, syntax-aware parsing than sed's line-based stream editing.
  • regex – Provides a higher-level, less error-prone abstraction for complex code patterns than raw regular expressions.
Version History
Detected Version Rev Change Commit
Nov 21, 2025 8:21pm 0 VERSION_BUMP fbe1346c
Sep 14, 2025 3:55am 0 VERSION_BUMP 22c0ab27
Dec 20, 2024 11:07pm 0 VERSION_BUMP ba1c07b4
Nov 9, 2024 1:17pm 0 VERSION_BUMP d13afa8b
Nov 9, 2024 12:53pm 0 VERSION_BUMP 42c2f089
Sep 13, 2024 3:47am 0 VERSION_BUMP 740fe06e