Hi to all, ...and sorry for bad post formatting but PerlMonks seems don't recornize \n statement..
Here we are: after had accumulate lots of .vcf files were inside of each are plenty of duplicated records, I'm working on custom script for rationalize,merging & cleansing over 700k records.
I stuck on find universal solution for splits fields from records like this :
$in[$x]="NOTE;ENCODING=QUOTED-PRINTABLE:=0AAddress:=0A=0Aor. Soroca=0A
+Republic of Moldova=0A=0A=0A=0A Footwear. =Children's footwear. Lady'
+s footwear."
using code like:
$in[$x] =~ /(\w+\W?\w*\W?\w*\W?\w*\W?\w*\W?\w*\W*?\w*\W*?\w*\W*?\w*)\:
+(=?0?.+:*)/;
$a =$1;$2;
$a =~ s/;X-SYNCMLREF\d+//;
$key{$a} = $a;
This script work fine on almost the VCF's lables like : N, FN, ORG, TEL, etc.. but in record frame like above I obtain splitting on the lastest \: instead of first one, despite use of non greedy techniques:
$1 = "NOTE;ENCODING=QUOTED-PRINTABLE:=0AAddress"
$2 = "=0A=0Aor. Soroca=0ARepublic of Moldova=0A=0A=0A=0A Footwear. =Ch
+ildren's footwear. Lady's footwear."
Any suggestions ?
Thks