返回首页
We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [parsing]

Parsing refers to breaking an artifact into its constituent elements and capturing the relationship between those elements. This tag isn't for questions about the self hosted Parse Platform (use the [parse-platform] tag) or parse errors in a particular programming language (use the appropriate language tag instead).

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

How To Parse XML-Like File Streamed Text and Export into CSV

I have log files which appear to be file streamed text that contains c++ namespace artifacts (hinted by the double colons ::) and XML some content embedded. I have loaded the log and displayed them ...
-1
votes
0answers
9 views

VBA - HTML Parsing HTTP Response

I have been trying to parse a very simple HTML response but without success so far. The HTTP POST request seems to work as required but then no results. Public Sub parsehtml() Dim http As Object, ...
0
votes
0answers
21 views

How to stay logged in when parsing pages with PHP?

I'm trying to parse site, for example YouTube. I logged into my Google account on my computer. For parsing I use PHP and PHP simple HTML dom parser. This is my code. <?php include '../...
0
votes
0answers
13 views

Parsing XML as a String using InputSource gives empty Document

I am trying to parse XML as a String. No matter whether or not I'm using the response from a RESTful call or a simple string, i get a null Document when i parse it. i have found several posts telling ...
10
votes
1answer
62 views

Impossible to fully qualify class-name in out-of-class declarator of function definition

This program results in an undesired parsing greediness dead-end: struct float4x4 {}; class C { float4x4 M(); }; float4x4 ::C::M() { return float4x4{}; } :8:1: error: no member named 'C' ...
0
votes
2answers
50 views

Using strtol to parse integral data and avoid invalid formats - C

So I want through the most topics related to using strtol in respect of inputs, but didn't find the exact issue I look for. Basically, I have to build some data structure in C (m-ary tree), and we ...
0
votes
0answers
19 views

GSON: Expected a string but was BEGIN_ARRAY

Sample JSON: [ { "data": [ { "timestamp": "2019-11-16T22:00:00.000Z", "results": [ { "Attempts": 20124, "value": [ "LIVE" ...
0
votes
1answer
24 views

How can I explain to lubridate which locale it should use?

I can't get it to work, please can someone tell me what's wrong? On Windows with german locale. library(lubridate) library(dplyr) t0 <- "Dienstag, 19. Februar 2019 12:49:06" t0 %>% ...
0
votes
0answers
25 views

Parsing Postman JSON collection file to create a C# REST client test?

I'm looking into how I can create a Postman collection parser. While working with it, I started wondering if someone else has dealt with the same question. The reason why I'd want to create a parser, ...
0
votes
0answers
13 views

How to parse int and doubles in scientific notation in Java? [duplicate]

I thought about using wrapper classes to catch the doubles and integers found in the file. I get the following error when reading the file attached below the code: Here is my code: import java.util.;...
-2
votes
0answers
19 views

Abstract Syntax Tree of java source project parsed by “javalang” library in python Anaconda [on hold]

I want to parse java open source project into AST(Abstract Syntax tree by javalang library in python but I don't know how can I take input of whole java package instead of 1 by 1 file. Please help me ...
0
votes
1answer
20 views

problems parsing text in python

I wrote a short Python script that parses a text file in order to pull out all words that are between 4 and 8 letters long, then writes them to another text file. Each word should be in quotes ...
0
votes
1answer
25 views

React: How to update the DOM with API results

My goal is to take the response from the Google API perspective and display the value into a div within the DOM. Following a tutorial : http://medium.com/swlh/combat-toxicity-online-with-the-...
0
votes
0answers
13 views

push notifications configuration parse Bitnami API on AWS dosent work

I have a problem with the enabling of push notifications for my Parse server for iOS Apps. I followed all the steps on the official Parse website for enabling these push notification but I get the ...
-1
votes
0answers
28 views

Lambda function AST for query parser (Haskell)

I'm trying to set up an AST for lambda functions in my query parser (Haskell). Although I'm a bit confused as for how to go about this. My original AST for a query ( only extracted the SELECT queries ...
-1
votes
2answers
42 views

Is there a formula in Excel that can parse this bank statement info into 5 columns?

I'm sure someone has this already figured out, does anyone know an efficient way to parse this bank statement data into 5 columns (PostDate, TransDate, Description, Reference, Amount)? 01/04 01/03 ...
-1
votes
0answers
27 views

How would i get the value of HTTP response

This is the response, http://www.viewmyrecord.com/Texting/GetReply.asp?from=15621234567&to=15629876543&text=Hi Kid,Reminder November 22, 2019 w/ REN. How would i get the value of "from","to"...
-2
votes
0answers
10 views

Searching for record (row) matching the ID (as a command argument) of a CSV file, deleting that row and save the file in C then print resulting CSV

I'm stuck with a problem involving structs, and apologies if this question seems lazy/ not bothering to put effort by I'm very inexperienced with coding and English isn't my first language so i'm ...
0
votes
1answer
31 views

Why am I getting different results from the Dragon Book when constructing LL(1) table?

Page 224, Algorithm 4.31. The method for constructing an LL(1) table says: For each production A -> alpha of the grammar, do the following. For each terminal a in FIRST(A), add A -> ...
0
votes
1answer
26 views

Parse JSON Array in Postman

I have some Response body data returned from a request made in Postman in the form of a JSON. Sample: { "targets": { "@uri": "/api/space/tag-management/tags/98304/targets", "...
0
votes
2answers
69 views

how to parse nested json in scala

Goal: I am trying to parse the following HAR format to a postman_collection json. example HAR format used to import data and describe HTTP calls from: http://github.com/Kong/httpnippet { "...
-1
votes
2answers
29 views

How to parse Json with dynamic key (That are unknown at the time of parsing) with jackson java [duplicate]

I have a map of the below JSON. I want to convert this map into POJO and while converting map to POJO. I want to remove this key from my way and just want the array in POJO(I don't want key-value pair ...
2
votes
2answers
56 views

case sensitivity affects SQL parsing in oracle DB

I know select * from employees; and select * from Employees; will generate 2 diff SQLids and hash value but eventually use same hashplan value. So it this soft parse or hard parse? and will both ...
1
vote
2answers
37 views

Problem with parse a LocalDateTime using java 8

I have this code, it's a simple string that I want to parse it to a LocalDateTime import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.time.format....
-1
votes
3answers
66 views

Find and extract an html tag from a large page

Figuring a very long html page as a string. How to extract a tag with its content? Any long Wikipedia page illustrates the thing Using a parser like cheerio is excluded for performance reasons. Using ...
-1
votes
0answers
13 views

Detect whether a pdf document has one column or two using python

I am trying to detect whether a pdf document has a single column or two columns using python. Any idea how I can do that? Thanks
0
votes
2answers
30 views

Parsing a URL for its img links in python

I am trying to parse a URL to get all of its image links by using the img tags. I can get the tuple with the src and url but cannot figure out how to work with the tuple and only print the url. Please ...
2
votes
1answer
61 views

Python - How to convert a binary tree to N-ary tree keeping the same information

I have a binary tree that represents a parsed logical formula. For example, f = a & b & -c | d is represented by a list of lists in prefix notation, where the first element is the operator (...
-1
votes
1answer
24 views

How to traverse an AST generated by a 3rd party parser?

I have an AST generated by a 3rd party parser, which I cannot change. How to walk/traverse through it using Javascript, or even better using TypeScript?
-1
votes
0answers
6 views

Is there a publicly-available LogMX parser for Windows MSI logs?

I am looking for a LogMX parser for Windows MSI logs that I can import into my install of LogMX (v7.8). I have Google searched variations of "logmx msi log parser" with no joy. I have searched the ...
-1
votes
2answers
26 views

Remove some text from parsed string [on hold]

text = "1=name1.email" text = "name2.email" I need to remove "1=" from the text only if present and return only "name1.email" or "name2.email" And return the final text.
1
vote
1answer
26 views

Read paragraphs in order in PDFBox

I'm trying to parse a journal page using PDFBox. Here's a snippet of the code I'm using: try (PDDocument document = PDDocument.load(new File("myfile.pdf"))) { if (!document.isEncrypted()) { ...
3
votes
3answers
58 views

Get the key value from a json in Java - JSON Parsing

I have a json as below. I want to get mobile_number from this jsonObject. json:- {"id": "ABCD", "report": { "data": { "phone": { "mobile_number": 9876543210, "active": "Y", "content": null } } } } ...
0
votes
0answers
35 views

How to parse and replace string in a text file C# and generate output message

Inbound Message Inside this InBoundmessage.txt the values within the parentheses I want parsed and replaced with the values inside the parentheses in the Outbound Message. My code isn't parsing the ...
0
votes
2answers
54 views

Should I use json objects directly?

I have always used a fromJson method to convert my json object to my model object. So let's say that my JSON has a car field which has my car models data, so I always parse the Json. Now I found out ...
0
votes
0answers
22 views

how i can parse or decode that json for html page [duplicate]

how i can parse or decode that json for html page white javascript or php I'm new to JSON, if anyone can help me json from an API response { "message": "OK", "result": { "files": [ ...
-2
votes
0answers
21 views

Is there any good example I can follow to read the text and highlighted fields under in it pdf/word using apache tikka [on hold]

I am highlighting a text in a pdf/word document with some kind of comment like @SCHOOL.NAME and let the highlighted text be "UC Berkerley" and I am expecting result to be like @annoation = @SCHOOL....
0
votes
0answers
10 views

LF(1) analysis and lookahead symbol deduction

I have grammar: S` -> S S -> SaSb S -> epsilon And i need to construct LR(1) action and go to table. I have problem with creating sets of LR(1) with lookahead symbols. As far as my notes ...
0
votes
0answers
19 views

How to evaluate a parse expression with a defined function and find a root for this evaluation

I need to find a root for a non-linear function, this function has a if else statement and I can't find solution for that, i tried nsolve, fsolve but without sucess. My code below: from sympy import ...
0
votes
0answers
12 views

Wordpress and Facebook Instant Articles charset error

I have relay annoying thing happening , FB Instant Articles are parsing feed with some strange characters like *Obilje&zcaron;ena 26&period; godišnjica strijeljanja fra Nikice Mili&...
-1
votes
1answer
23 views

Struggling to parse response from API service

Struggling to parse what appears to be a simple response from an API service (GraphQL / JSON). The response is retrieved as String based on HTTP request, and have tried different approaches (using ...
2
votes
1answer
36 views

How to evaluate a expression that contains defined functions and return a numeric solution

I'm translating a R code to python but i had some error in nsolve function. I'm trying to evaluate one expression that contain a ifelse statement defined by a function, i Had progress with my code, ...
0
votes
0answers
45 views

Regex questions. How to not match a word that is continued with hyphen [duplicate]

I'm using a regex to count how many times a word occurs per line in a large text file. The problem is, I'm getting words that are continued with a hyphen included in my word count. For example, in a ...
1
vote
3answers
45 views

Parsing a text file using java with multiple values per line to be extracted

I'm not going to lie I'm really bad at making regular expressions. I'm currently trying to parse a text file that is giving me a lot of issues. The goal is to extract the data between their respective ...
0
votes
1answer
31 views

pythonic way of reading a flattened dict in an input file

I am reading an input file that essentially contains a nested flattened dictionary, like this: &HEADER header line 0 header line 1 &End_HEADER some other line 1 some other line 2 #XXX0 line 0 ...
2
votes
0answers
75 views

Writing a JSON parser for C++

So far I have managed to put together a lexer and a stack in the hopes of achieving a LL1 parser. I am doing this purely to understand how parsing works, and maybe to use these ideas in future ...
1
vote
1answer
47 views

Java datetime inconsistent between local application and Jenkins deployment

I am receiving a date time as a string into my application. There I need to extract the hour so it can be written to a file along with some other stuff. For my unit test the string will look like this ...
-2
votes
0answers
31 views

How to write special charaters like & < > " ' in XML file as it is without escaping in javax.xml.* [on hold]

How to write special charaters like & < > " ' in XML file as it is without escaping in javax.xml
0
votes
1answer
15 views

Extract dependencies and versions from a gradle file with Python

I need to extract the dependencies and versions of build.gradle file. I do not have access to the project folder, only to the file, so this answer does not work in my case. I am using python to do the ...
1
vote
1answer
29 views

antlr4.7.2, right recursion and ambiguity

The Antlr 4.7.2 parser made with the following ambiguous, right-recursive context-free grammar fails to parse fed: grammar ambrd7; s : c s | b s | 'd' | 'e' 'd'; // fails on 'fed' c : 'f' 'e' ; b : '...

返回首页
杏彩计划 杏彩官网 杏彩APP 杏彩走势图 杏彩下载 杏彩官方 杏彩网站 杏彩怎么玩 杏彩官方 杏彩靠谱吗 杏彩代理 杏彩骗局 杏彩投注 杏彩倍率 杏彩开奖 杏彩漏洞