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

# Catmandu::Fix::Condition::all\_match(3pm)

only execute fixes if all path values match the given regex

## NAME

Catmandu::Fix::Condition::all\_match - only execute fixes if all path values match the given regex

## SYNOPSIS

```
   # uppercase the value of field 'foo' if all members of 'oogly' have the value 'doogly'
   if all_match(oogly.*, "doogly")
     upcase(foo) # foo => 'BAR'
   end
   # case insensitive search for 'doogly' in all 'oogly'
   if all_match(oogly.*, "(?i)doogly")
     ...
   end
```

## SEE ALSO

Catmandu::Fix
