example for repeatable or non-repeatable values
[MojoFacets.git] / public / code / Habitat.habitat_references.pl
1 foreach my $v ( @{ $row->{Habitat} } ) {\r
2  foreach my $ref ( $v =~ m/\[((?:\d+)(?:\s*,\s*\d+)?)\]/g ) {\r
3   push @{ $row->{habitat_references} }, split(/\s*,\s*/,$ref);\r
4  }\r
5 }