{"id":93664,"library":"pattern-patch","title":"Pattern Patch","description":"Identifies positions in text using regular expressions and inserts or replaces patch text, with revert capability.","status":"active","version":"1.1.0","language":"ruby","source_language":null,"source_url":"https://github.com/jdee/pattern_patch","tags":["patch","regex","text","utility"],"install":[{"cmd":"gem install pattern_patch","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'pattern_patch', '~> 1.1.0'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"PatternPatch","correct":"require 'pattern_patch'"}],"quickstart":{"code":"require 'pattern_patch'\n\npatcher = PatternPatch::Patcher.new\npatcher.patch('file.txt', :before => /old_text/, :with => 'new_text')\npatcher.apply","lang":"ruby","description":"Patches text in a file using a pattern"},"warnings":[],"env_vars":null,"search_vec":"'capabl':18 'express':9 'identifi':3 'insert':11 'patch':2,14,19 'pattern':1 'posit':4 'regex':20 'regular':8 'replac':13 'revert':17 'text':6,15,21 'use':7 'util':22","created_at":"2026-06-19T09:53:48.622568+00:00","updated_at":"2026-06-19T09:53:48.622568+00:00","problems":[],"ecosystem":"rubygems","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"http://github.com/jdee/pattern_patch","github":"https://github.com/jdee/pattern_patch","docs":"http://www.rubydoc.info/gems/pattern_patch/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}