Catmandu::Fix::parse_text(3pm) | User Contributed Perl Documentation | Catmandu::Fix::parse_text(3pm) |
Catmandu::Fix::parse_text - parses a text into an array or hash of values
# date: "2015-03-07" parse_text(date, '(\d\d\d\d)-(\d\d)-(\d\d)') # date: # - 2015 # - 03 # - 07 # date: "2015-03-07" parse_text(date, '(?<year>\d\d\d\d)-(?<month>\d\d)-(?<day>\d\d)') # date: # year: "2015" # month: "03" # day: "07" # date: "abcd" parse_text(date, '(\d\d\d\d)-(\d\d)-(\d\d)') # date: "abcd"
Catmandu::Fix
Catmandu::Importer::Text
2023-03-03 | perl v5.36.0 |