Catmandu::Fix::replace_all - search and replace using regex expressions
Contents
Name
Catmandu::Fix::replace_all - search and replace using regex expressions
See Also
Catmandu::Fix
perl v5.40.0 2025-01-17 Catmandu::Fix::replace_all(3pm)
Synopsis
# Extract a substring out of the value of a field
# {author => "tom jones"}
replace_all(author, '([^ ]+) ([^ ]+)', '$2, $1')
# {author => "jones, tom"}
