in reply to Regular Expression Assistance

XML is better handled by an XML-aware tool.
#!/usr/bin/perl use warnings; use strict; use feature qw{ say }; use XML::LibXML; my $content = '<entry key="maxcompdatastripe" value="41943040" />'; my $entry = 'XML::LibXML'->load_xml(string => $content)->documentEleme +nt; $entry->{value} = '20917520'; $entry->{merge} = 'keep'; say $entry;

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]