All Questions
802
questions
0
votes
0
answers
54
views
How can I handle EOF when it can legally occur in other places rather than just after a line-ending?
I'm writing a parser with winnow 0.6.7, to parse a text file that has simple lines like this:
.DIRECTIVE 0 1 // a comment
.MODE 0 "ignore me"
Usually every line ends in \n or \r\n, but in ...
1
vote
0
answers
67
views
How do I Parse a non-delimited flat-file
I have some flat files where each line is about 300 characters. The data has no delimiters of any kind and I want to parse the file to introduce some sort of delimiter between fields. There are ...
0
votes
0
answers
55
views
python speed up text parsing
I wrote function for text file parsing with Python, avoiding using RegEx expression for speed. The code will split line at comma and space, trim and strip spaces and empty lines. The code first ...
0
votes
1
answer
46
views
How can I parse this proprietary text file into CSV with maybe regex and/or Python?
I have been given a config file from an old proprietary system that I want to parse into a CSV so I can import it into a SharePoint List or an Excel file, and access it with either Power BI or Power ...
0
votes
0
answers
191
views
Using Select-String to parse a cheat file for Yuzu
I figured out a working script to create the necessary folder structure and relevant .txt file for each cheat, but I am having problems figuring out how to parse the cheat file and use out-file to ...
0
votes
1
answer
41
views
splitting long text file in python
I have a long text file of messages. I would like to split each message to one row with the fields each going to a separate column. The messages are delimited with ';'. Each of the fields is labeled ('...
0
votes
1
answer
48
views
Convert structured notation text to object in Python
I have a response from an API call that provides me with a form of dot notation text. What I would like to be able to do is to convert the dot notation text into something I can easily manipulate - ...
-1
votes
4
answers
348
views
C++ Parsing text and writing to a csv file
**My friend sent me this and I couldn't find a way to do it. **
There are million things I've tried with AI but no hope.
I would be really appreciated if someone helped me with this.
It has to be C++
...
1
vote
2
answers
90
views
Read data from table broken into pieces from text file
I'm trying to parse information in a text file that looks like this
Distance (m):
1 2 3 4 5
1 0.000000D+00
2 0.753566D+...
0
votes
1
answer
69
views
I want to extract all JSON objects from this text file and create a dictionary. As you can see, in my text there are nested objects as a key value
text = Autotune exists! Hoorah! You can use microbolus-related features. {"iob":0.121,
"activity":0.0079,
"basaliob":-1.447,
"bolusiob":1.568,
"...
0
votes
1
answer
55
views
Javascript mishandling special character †
Within a textarea, I want to identify the position of the last "†" character.
var textField = document.getElementById("main_field");
console.log(textField.value.indexOf("†"));
<...
0
votes
2
answers
65
views
How to iteratively retrieve the right information from beautiful soup elements?
I try to retrieve information from EZB press releases. To do so I use BeautifulSoup. Since the structure (HTML) of the press releases is changing over time, it is difficult to retrieve the date of the ...
1
vote
1
answer
52
views
Php Parse text to array with contain duplicate key
I want to parse text to array:
text delimited with =>
First is the key and last is the value
I will parse the text to an array. If a duplicate key is found, the value is an array with these keys. ...
1
vote
1
answer
150
views
Parse/Replace Text that contains conditional placeholders
Looking for a little advice or knowledge of 3rd party libraries that may help with this.
For a user-generated set of template text, such as those found below, how would you go about (automatically as ...
3
votes
0
answers
83
views
Parsing Quantum Assembly Language text files in Julia
Quantum Asembly Language (QASM) - a human readable text that declares classical bits and qubits along with operations (gates) that should be applited to those bits.
Here is a simple example of a ...