parsing Questions
2
Solved
Original URL ▶ https://www.exeam.org/index.html
I want to extract exeam.org/ or exeam.org from original URL.
To do this, I used urllib the most powerful parser in Python that I know,
but unfortunat...
4
Solved
I have to process a large archive of extremely messy HTML full of extraneous tables, spans and inline styles into markdown.
I am trying to use Beautiful Soup to accomplish this task, and my goal i...
Foliate asked 26/8, 2018 at 12:30
5
I would parse the following string:
$str = 'ProceduresCustomer.tipi_id=10&ProceduresCustomer.id=1';
parse_str($str,$f);
I wish that $f be parsed into:
array(
'ProceduresCustomer.tipi_id' ...
3
Solved
We need to parse the GS1 datamatrix barcode which will be provided by other party. We know they are going to use GTIN(01), lot number(10), Expiration date(17), serial number (21). The problems is t...
Derzon asked 21/8, 2014 at 15:58
2
Solved
3
I'm parsing XML in python by ElementTree
import xml.etree.ElementTree as ET
tree = ET.parse('try.xml')
root = tree.getroot()
I wish to parse all the 'xml' files in a given directory. The user s...
Nathanialnathaniel asked 28/3, 2013 at 10:30
10
Solved
I'm trying to parse a CSV string to an array in PHP. The CSV string has the following attributes:
Delimiter: ,
Enclosure: "
New line: \r\n
Example content:
"12345","Computers","Acer","4","Varta...
4
I am implementing a parser for a domain specific language, and want to be able to raise a SyntaxError. How do I set the filename, lineno and offset when raising this exception?
exception SyntaxE...
Trigonous asked 15/11, 2015 at 8:31
1
Solved
I've created a simple program based on the Raku parsefile example provided here. The contents of my Raku file are:
grammar Names {
token TOP { [<name><.ws>]+ }
token name { <:alpha...
6
I have a string in the form "2013-09-18". I want to convert it into a java.util.Date.
I am doing this
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date convertedCurrentDate = sdf.par...
2
Solved
I'm taking a course in compiler construction, and my current assignment is to write the lexer for the language we're implementing. I can't figure out how to satisfy the requirement that the lexer m...
Ilke asked 15/4, 2013 at 23:33
5
Solved
I have a tab delimited file which is being parsed and then inserted into a database. When I run into the date column, I have trouble parsing it.
The code I have is:
var insert = DateTime.ParseExa...
9
Solved
I'm storing an ArrayList of Ids in a processing script that I want to spit out as a comma delimited list for output to the debug log. Is there a way I can get this easily without looping through th...
6
Solved
I'm trying to unit test a getprice method using NUnit. I am stuck with parsing the rawprice into double. My cultureinfo is en-US but I set it to de-DE for this test. Double parsing with numberstyle...
7
I got this error firebaseapperror: failed to parse private key: error: invalid pem formatted message when I pushed my nodejs app to heroku.
I had my environment variables all set like this
# .env f...
Centenarian asked 8/12, 2021 at 20:10
4
First I made an application and then I've started doing test for it ( Know it is not good way ), everything works fine with parsing etc, but after i made few test got an error :
Newtonsoft.Json....
Thaumaturgy asked 24/11, 2016 at 15:38
6
Solved
I want to (quickly) put a program/script together to read the fileset from a .torrent file. I want to then use that set to delete any files from a specific directory that do not belong to the torre...
Umbel asked 2/1, 2009 at 12:42
9
Solved
I'm reading a file into python 2.4 that's structured like this:
field1: 7
field2: "Hello, world!"
field3: 6.2
The idea is to parse it into a dictionary that takes fieldfoo as the key and whateve...
Coagulase asked 31/1, 2012 at 0:30
7
Solved
This question is pretty much the opposite of this question:
Does C# have built-in support for parsing page-number strings?
So given
1,3,5,6,7,8,9,10,12:
I will ouput:
1,3,5-10,12
Here is my...
3
Solved
6
Solved
I am getting form data in this form
'------WebKitFormBoundarysw7YYuBGKjAewMhe\r\nContent-Disposition: form-data; name': '"a"\r\n\r\nb\r\n------WebKitFormBoundarysw7YYuBGKjAewMhe--\r\n
I'm tryin...
Motheaten asked 4/6, 2015 at 21:45
9
Solved
I am trying to parse MongoDB records to a pydantic model but failing to do so for ObjectId
From what I understood, I need to setup validator for ObjectId and did try to both extend ObjectId class ...
9
Solved
a = raw_input('How much is 1 share in that company? ')
while not a.isdigit():
print("You need to write a number!\n")
a = raw_input('How much is 1 share in that company? ')
This only works if t...
Mediocrity asked 9/11, 2010 at 20:23
7
Solved
These threads do NOT answer me:
resetting a stringstream
How do you clear a stringstream variable?
std::ifstream file( szFIleName_p );
if( !file ) return false;
// create a string stream for parsi...
Houseyhousey asked 24/8, 2012 at 15:21
8
Solved
I am using ConfigParser to read the runtime configuration of a script.
I would like to have the flexibility of not providing a section name (there are scripts which are simple enough; they don't n...
Narcotic asked 21/5, 2010 at 20:1
1 Next >
© 2022 - 2024 — McMap. All rights reserved.