---
name: "Catmandu::Fix::replace_all"
section: "3pm"
platform: "linux"
package: "libcatmandu-perl"
version: "1.2024-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catmandu::Fix::replace_all"
---

# Catmandu::Fix::replace\_all(3pm)

search and replace using regex expressions

## NAME

Catmandu::Fix::replace\_all - search and replace using regex expressions

## SYNOPSIS

```
   # Extract a substring out of the value of a field
   # {author => "tom jones"}
   replace_all(author, '([^ ]+) ([^ ]+)', '$2, $1')
   # {author => "jones, tom"}
```

## SEE ALSO

Catmandu::Fix
