Hello friends,
I need to capture specific to address part (highlighted part (bold)), sample text as below:
BASIC REPORT
ABCDE CIRCLE OFFICE BUILDING 116 W Market Street
Aberdeen, Washington 98520
PREPARED FOR:
Always Happy
BANK OF THE ASIA 4144 Hannegan Road
Bellingham, Washington 98226
PREPARED BY:
Rama Rao. Cathy, MAO, AO-GPRS
CASSINELLI VALUATION LLC 4804 NW Bethany Boulevard, Suite I-2 Portland, Oregon 97229
(503) 575-9217 / testx@cmail.com
Please help me in building the logic for the address part:
Address will start with numeric (street number) and ends with five digit zip code.
Hi Gokul, Sorry.
i am getting the output same as it is captured from Input pdf sheet, as below:
BASIC REPORT
ABCDE CIRCLE OFFICE BUILDING 116 W Market Street
Aberdeen, Washington 98520
PREPARED FOR:
Always Happy
BANK OF THE ASIA 4144 Hannegan Road
Bellingham, Washington 98226
PREPARED BY:
Rama Rao. Cathy, MAO, AO-GPRS
CASSINELLI VALUATION LLC 4804 NW Bethany Boulevard, Suite I-2 Portland, Oregon 97229
(503) 575-9217 / testx@cmail.com
Expected output is
116 W Market Street
Aberdeen, Washington 98520
4144 Hannegan Road
Bellingham, Washington 98226
4804 NW Bethany Boulevard, Suite I-2 Portland, Oregon 97229
Hi Nani
I tried write line command, but returning empty values.
The below code worked well:
System.Text.RegularExpressions.Regex.Match(PDFtext,“(?s)\s+\d+.*?\d{5}”).ToString.Trim