It must be too late in the day...
I have an extended attribute:
TeamSite/Metadata/Security_Group
that I want to gather the value of. A piece of function that I'm using to separate the key/value pairs:
foreach $ea (@metadata)
{
chomp($ea);
if (($ea !~ /ERROR/i)||($ea !~ /NextEA/i))
{
my ($key, $value) = split(/=/, $ea);
print "Existing Metadata Found: $fullVPath\n";
print OUT "$fullVPath||$key||$value\n";
}
}
works fine in all other cases except those values with have a format like:
{BUSINESS_GROUP=blah}
so if the key/value pair is: TeamSite/Metadata/Security_Group={BUSINESS_GROUP=blah}
I only get {BUSINESS_GROUP as a return value. Is there a way that I can limit the split regex to only take in regard the initial "=?"
TIA