Apr-25-2019, 09:58 AM
Hi,
I have this text of emails and their signature"
I would like to go through the text and remove the signature, but the code should be flexible for any text of this nature. As soon as there's "King Regards or Vriendelike groete" it should see that that's a signature, maybe preceded by '\n'. I don't know if there's Library out there or Regex, I've been trying to playing around with it but succeeding.
I have this text of emails and their signature"
Quote:Good Morning
This is the first email block.
Vriendelike groete/ Kind regards
User One
Direct tel: 021 000 0000 | Email:
user@one.com
From: Test Emais [mailto:test@email.co.za]
Sent: 28 March 2019 11:00 AM
To: User One;user@one.com;
Subject: Testing Subject
Dear Mr
Please note that we are testing this service
Service request number: TEST123
When you contacted us: 2019-03-2810:15 AM
Testing this
Testing it here
ok that's enough
Typing
Kind regards
The Typist
E-Mail: typist@User.co.za
Contact Number: 111 555 9988
Fax Number: 000 111 1234
The content of this email is confidential and intended for the addressee only. If it was sent to you in error, please notify the sender immediately and delete the email.
I would like to go through the text and remove the signature, but the code should be flexible for any text of this nature. As soon as there's "King Regards or Vriendelike groete" it should see that that's a signature, maybe preceded by '\n'. I don't know if there's Library out there or Regex, I've been trying to playing around with it but succeeding.
Quote:Good Morning
This is the first email block.
From: Test Emais [mailto:test@email.co.za]
Sent: 28 March 2019 11:00 AM
To: User One;user@one.com;
Subject: Testing Subject
Dear Mr
Please note that we are testing this service
Service request number: TESTING123
When you contacted us: 2019-03-2810:15 AM
Testing this
Testing it here
ok that's enough
Typing