Creating one record from multiple lines of text in either Access or Excel

Hello,

I need to create a record from multiple lines of text in csv file. I'm parsing log information. Basically, the record starts at 2018-05-2018 and ends at the next occurance of the  2018-05-2018.   For example:

2018-05-17T11:kfjsadlkfadklgjkaddjfj   dfalksdfsrhtioqeuih     du839457heir5834   odioiqweethen554viir dofjaweweoprweoitrhoiwer
dajrfawdkhboiyib   kdfjag ojern u
2018-05-17T11:32:03.fkdslfjds  dkfj;d ej96nt []

2 records would be created out of the example above:

Record 1 = 2018-05-17T11:kfjsadlkfadklgjkaddjfj   dfalksdfsrhtioqeuih     du839457heir5834   odioiqweethen554viir dofjaweweoprweoitrhoiwer dajrfawdkhboiyib   kdfjag ojern u
Record 2 = 2018-05-17T11:32:03.fkdslfjds  dkfj;d ej96nt []

Currently the file is in notepad.

I have Excel, Access or notepad++

Once I have the multiple lines into 1 record, I can parse out the information I need, but I'm not sure how to combine the lines to make one record.

Any suggestions?

Thank you?
LVL 1
Steph_MAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

aikimarkCommented:
Please post a representative sample.
How big is the actual file?
Is this a one-time conversion?
aikimarkCommented:
In Notepad++, you can do a Find/Replace operation.
* click the Regular Expression radio button on the F/R dialog
* \r\n(?!\d\d\d\d-\d\d-\d\dT) in the Find What box.
* a single space character in the Replace With box
* Replace All
Steph_MAuthor Commented:
Thank  you for looking at this.

The file is about 50K lines.
I've been working with an Excel add-in but I'm not getting the results I need.
I like your notepad++ idea but it didn't work either.

I've attached cleansed sample data as requested.
SampleREGEX1-Input.txt
SampleREGEX1-Output.txt
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

aikimarkCommented:
Thanks for the data samples.
aikimarkCommented:
Ah.  Change the Replace With to nothing (an empty string)

Replacing the CrLf with a space was not correct.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
aikimarkCommented:
If that works, you could potentially code that up in VBScript or Powershell for complete automation.  Alternatively, you might put those actions in a Notepad++ macro for easy playback.
aikimarkCommented:
but it didn't work either
If I've missed the point of my process not working, then please supply some details.
Steph_MAuthor Commented:
I just got in formatted in Excel with a bunch of "IF" clauses but it was way to bulky and time consuming. Since I will need to do this mulitple times, I am going to try your method until I get it working. Thank you.

Steph_M
Steph_MAuthor Commented:
No comment
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.