Hello,
I have difficulties for build a pattern Regex.. I forgot my lessons ...
This is an example of my Gedcom files
0 HEAD
1 ......
1 CHAR UTF-8
1 PLAC
2 FORM Town , Area code , County , Region , Country, Subdivision
0 @1I@ INDI
1 NAME Eugénie Joséphine/Lefeuvre/
2 GIVN Eugénie Joséphine
2 SURN Lefeuvre
1 SEX F
.....
1 BIRT
2 DATE 30 JUL 1860
3 TIME 1:0
2 PLAC Bayonne,64100,Pyrénées-Atlantiques,Aquitaine,FRANCE,Pyrénées Atlantiques
2 _FNA NO
2 SOUR @8S@
2 NOTE Témoins :
3 CONT Jean Baptiste
3......
0 @4U@ FAM
1 HUSB @2I@
1 WIFE @1I@
1 CHIL @3I@
1 MARR
2 DATE 6 OCT 1883
3 TIME 11:0
2 PLAC Saint-Maur-des-Fossés,94210,Val-de-Marne,Île-de-France,FRANCE,
2......
Q1 - How to Extract the <Date> from tag <MARR> sub-tag <DATE> ?
Q2 - How to Extract the sub-tag <Town> and the sub-tag <Country> from tag <MARR> sub-tag <PLAC> and build <Town - Country> <Town> + caracter "-" + <Country> ?
Sometimes <MARR> <PLAC>
doesn't exist,
is partially empty i.e. < , Area code , County , Region , Country, Subdivision>
is partialy empty i.e. <Town , , County , Region , Country, Subdivision>
and so ..
Thanks in advance for your help
Regards