Quantcast
Channel: Active questions tagged string-manipulation - Mathematica Stack Exchange
Viewing all articles
Browse latest Browse all 189

Importing Specific Data from a Text File

$
0
0

I am quite new to Mathematica. I have a text file that upon importing has a repetitive structure with characters included. I need to extract only the following in numbers only (no letters, dash lines, or commas) and store them in consecutive five columns (date, time, measurement value 1, measurement value 2, measurement value 3).

My imported data file looks like this:

Date and Time: 2024-04-01 08:42:47Measurement: 22.10,924.89,43.43-------------------------Date and Time: 2024-04-01 08:42:51Measurement: 22.09,924.89,43.42-------------------------Date and Time: 2024-04-01 08:42:54Measurement: 22.09,924.90,43.44-------------------------Date and Time: 2024-04-01 08:42:57Measurement: 22.09,924.90,43.48------------------------- 

I've tried splitting but I just keep getting a null output {}Any help is really appreciated.


Viewing all articles
Browse latest Browse all 189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>