I have a raw text
Exmp 1:
order pickup details>>> >>> pick up before the store closes on Wed, Apr 11>>> >>>
scan in-store for order pickup>>> >>> >>> 9019560>>> Warrenville Target Store>>> 28201 Diehl Rd, Warrenville, IL 60555
Exmp 2:
Come to collect your order in the next 2 days (after that it'll be cancelled). Your payment will be processed as soon as you collect your order.>> >> >>
Pickup Store:>> >> Lush Naperville <https://click.e.lush.com/?qs=cbb6669d6dac2528c696ad86bb5b6fd3ebae7703b0b05e2a40dbc6705d0f3325fe891806d5a629b19dbc9b8e9d36e46e7d944d995ea896decd587d210c8bb838>>>
119 S. Main Street , Naperville, IL 60540>> >> Choose between curbside or in-store pickup.>>
How the address part can be extracted from the above text in Node.js. How to solve this?
Actually, what happening here is. I am getting different emails from different stores after order confirmation. I need to get the store address from the email. Here each store using a different format for their email order confirmation.
I am getting this raw text after converting the email template into text format.
Below one is the related question to my problem. But it is in python.
How can I extract address from raw text using NLTK in python?
Is there any way to detect the address from the text? I am new to this.