---
title: "re2 2.0.0 Breaking Changes on RubyGems | Since.dev"
description: "What each re2 release removed, renamed or changed: 6 breaking changes in 2 versions on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/re2
last_updated: 2026-12-04
---

# re2 breaking changes

re2 2.0.0 (September 13, 2023) is its newest release with breaking changes, 2 of them. The first: re2 2.0.0 requires Ruby 2.6 or later. Every breaking API change we have recorded in re2 on RubyGems: 6 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.29.0`. [Source repository](https://github.com/mudge/re2)

Its 2.0.0 release requires Ruby 2.6 or later. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

- From [0.6.0](#v-0-6-0) to [2.0.0](#v-2-0-0): 2 breaking changes in 1 version.

## re2 2.0.0 breaking changes

re2 2.0.0, released September 13, 2023: 2 breaking changes.

- **Behavior changed**  

The 2.0.0 major release no longer supports Ruby versions before 2.6. Users on older Ruby must upgrade Ruby or stay on the 1.x series. [github.com](https://github.com/mudge/re2/releases/tag/v2.0.0)
- **Default changed**  

Installing the gem now builds RE2 and Abseil from the bundled sources instead of linking a system RE2. To keep the old behaviour, install with the --enable-system-libraries option on the ruby platform. [github.com](https://github.com/mudge/re2/releases/tag/v2.0.0)

## re2 0.6.0 breaking changes

re2 0.6.0, released February 1, 2014: 4 breaking changes.

- **Removed** `re2_gsub!`  

The in-place replacement methods are gone in this release. Code calling re2_gsub! must be changed to use the new-string functions instead. [github.com](https://github.com/mudge/re2/releases/tag/v0.6.0)
- **Removed** `re2_sub!`  

The in-place replacement methods are gone in this release. Code calling re2_sub! must be changed to use the new-string functions instead. [github.com](https://github.com/mudge/re2/releases/tag/v0.6.0)
- **Behavior changed** `RE2.GlobalReplace`  

RE2.GlobalReplace no longer modifies the string passed to it. Code that relied on the input being changed must use the returned value. [github.com](https://github.com/mudge/re2/releases/tag/v0.6.0)
- **Behavior changed** `RE2.Replace`  

RE2.Replace no longer modifies the string passed to it. Code that relied on the input being changed must use the returned value. [github.com](https://github.com/mudge/re2/releases/tag/v0.6.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
