Category "parsing"

How can we programmatically get call hierarchy for methods in IntelliJ

Getting call hierarchy is easy in IntelliJ. Simply use the built in tool. But is there a way to do it using code? Eclipse internal JDT has two classes called Ca

How to parse over different elements in a HTML document (in Dart/Flutter) and keep the order intact

I have a large HTML document containing important information of different types in sequence. I'm parsing in Dart/Flutter Obtaining the raw information is fine

How to parse json to get all values of a specific key within an array?

I'm having trouble trying to get a list of values from a specific key inside an json array using python. Using the JSON example below, I am trying to create a l

Excel - We found extra characters at the end of JSON input

I am trying to import my json file to excel via the get data function. When doing this i get an error saying that "We found extra characters at the end of JSON

Combining unary operators with different precedence

I was having some trouble with Bison creating an operator as such: <- = identity postfix operator with a low precedence to force evaluation of what's on the

Cpp: JSON parser in Cpp that provide support Serialize/Deserialize feature, converting JSON objects to user-defined classes?

I'm working on native C++ development and looking for JSON parser that can handle complex JSON files and convert into class objects. I've looked at native ben

Uncaught SyntaxError: Unexpected token & in JSON at position 1 at JSON.parse (<anonymous>)

I am trying to parse JSON but it keeps returning Uncaught SyntaxError: Unexpected token & in JSON at position 1 at JSON.parse (<anonymous>) The c

Using jq to stream, filter large json file and save output as csv

I have a very large json file I would like to stream (using --stream) and filter with jq, then save it as a csv. This is the sample data with two objects: [{"_i

Extract string between the tags in Java

I have string like below Msg_Begin Some message1 Msg_End Msg_Begin Some message2 Msg_End Msg_Begin Some message3 Msg_End And want to get the message between

c# parse date time with timezone

How can we parse date time with time zone. <TIMESTAMP_UTC>20180523160000</TIMESTAMP_UTC> <TIMEZONE>UTC+8</TIMEZONE> this should conve

How to parse json format output of : kubectl get pods using jsonpath

How to parse the json to retrieve a field from output of kubectl get pods -o json From the command line I need to obtain the system generated container name

How to extract tables names in a SQL script?

Assuming there is a sql script: select * from ( select col1 from test.test_a join test.test_a1 on a.col1 = a1.col1) a left join test.test_b b on a.col1 = b.

GEDCOM parser in JavaScript

I have been looking for a GEDCOM parser in JavaScript. Does one exist at the moment? I have found them in many languages but not in JavaScript yet.

TypeError: strptime() argument 1 must be str, not float

I'm having parsing errors on my code, below is the code and almost understandable dataset import numpy as np import pandas as pd from datetime import datetime

Log Parsing with Regex

I'm trying to parse an Apache Log with regex using Python and assign it to separate variables. ACCESS_LOG_PATTERN = '^(\S+) (\S+) (\S+) \[([\w:/]+\s[+\-]\d{4})

How to split a Thai sentence, which does not use spaces, into words?

How to split word from Thai sentence? English we can split word by space. Example: I go to school, split = ['I', 'go', 'to' ,'school'] Split by looking only s

How to split a Thai sentence, which does not use spaces, into words?

How to split word from Thai sentence? English we can split word by space. Example: I go to school, split = ['I', 'go', 'to' ,'school'] Split by looking only s

Python - String.split() using delimiter ',', but there is price in string also using comma in thousand

I am trying to use Python to parse a CSV file. I have a string like this: "11/11/14","Buy","1,900","$10.40","-$19,760.00" I want to parse it to into list

parse pcap file with scapy

I am comparing scapy and dpkt in terms of speed. I have a directory with pcap files which I parse and count the http requests in each file. Here's the scapy cod

python map string split list

I am trying to map the str.split function to an array of string. namely, I would like to split all the strings in a string array that follow the same format. An