Hello,
I am Sorry, but I think you are wrong ..
I want to extract the subtag <DATE> in the tag <MARR>, ie; <6 OCT 1883> in this example
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......
1- In <MARR>, your pattern <(?ms).*^\d\sDATE\s(.*)$> + <$1> extract :
"
6 OCT 1883
3 TIME 11:0
2 PLAC Saint-Maur-des-Fossés,94210,Val-de-Marne,Île-de-France,FRANCE,
2 _FNA NO
2 SOUR @10S@
2 NOTE Témoins
Achille Dubois, oncle de Georges, 65 ans, employé au gaz, domicilié 20 rue Clavel à Paris 19 ieme.
Ma (?), Viviez 34 ans, commercant domicilié 34 rue de Moscou à Paris 8 ieme."
2- In <MARR>,my pattern <(?ms).*^\d\sDATE\s([^,]*),.*$> + <$1> extract :
"
"6 OCT 1883
3 TIME 11:0
2 PLAC Saint-Maur-des-Fossés"
So, all of these patterns doesn't run fine
The test, of the Regex in a Regtester seems OK, so where is the error ?
Regards