DOKK / manpages / debian 12 / libcatmandu-perl / Catmandu::Fix::replace_all.3pm.en
Catmandu::Fix::replace_all(3pm) User Contributed Perl Documentation Catmandu::Fix::replace_all(3pm)

Catmandu::Fix::replace_all - search and replace using regex expressions

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

Catmandu::Fix

2023-03-03 perl v5.36.0