For the past few hours I've been trying to match address(es) from the following sample data and I can't get it to work:
medicalHistory      None
address             24 Lewin Street, KUBURA, 
                NSW, Australia
email               MaryBeor@spambob.com
address             16 Yarra Street, 
                                     LAWRENCE, VIC, Australia
name                Mary   Beor
medicalHistory      None
phone               00000000000000000000353336907
birthday            26-11-1972
My plan was to find anything that starts with "address", is followed by any space followed by characters, numbers commas and newlines and ends with newline followed by a character. I came up with the following (and many variations of it):
address\s+([0-9a-zA-Z, \n\t]+)(?!\n\w)
Unfortunately that matches the following:
address             24 Lewin Street, KUBURA,
                NSW, Australia
email               MaryBeor  
and
address             16 Yarra Street,
                                 LAWRENCE, VIC, Australia
name                Mary   Beor
medicalHistory      None
phone               00000000000000000000353336907
birthday            26
instead of
address             24 Lewin Street, KUBURA, 
                NSW, Australia
and
address             16 Yarra Street,
                                 LAWRENCE, VIC, Australia
Can you please tell me what I'm doing wrong?
 
     
    