Good day to everyone
Well this is my first time asking a question here
So please bear with me.
I read here for a long time, cause JREPL is just so good and it helped me already to great legth with various tasks.
I slowly climb my way up to understand it deeper and deeper, but to be honest, i really struggle with regula expressionsits not even funny.
I now have a task at hand that goes definately beyound my knowledge. I already did serval approaches and tried to read snippets online to
find som ething that helps me.. but to no avail.
So finally i come to seek for help.
To the case
I get a exported file on a regular basis. Till now i just edited it by hand. But the export becomes steadily bigger and bigger and editing by hand costs too much time now.
Soooo to makes things worse. that piece of gar.. err useful software generate a totally trashed errr difficult to handle .csv file.
I mean its called a .csv file, not that it resembles any .csv that i ever saw. ..... Ok enough rambling.
One part of that report also includes the complete e-mail someone send. Unfortunately the exporter in unable to handle some of the formatting and little
"beauty" tricks some people do with their e-mail.
So i have a lot of nonsense in that mail. I really want to get rid of the entire Mailtext in one go, since its not needed for what happens afterward with it.
I can spot a uniqe point where i can start the elemination process.
That is the part "To:" the beginning of that passage starts always with To:
and the end of that said mail is always a double semicolon. So ;;
I want to get rid of everything that is between those two things
To: random length text with all sort of formats and special characters ;;
that has all to go.
I already managed to delete everything after the To: but i really dont get how i stop at the next ;;
As i said, i really struggle with the regular expressions
Also there are serval of those passages in the exportet file. Maybe someone here can help me?
So many thanks