Data dodania Pytanie
2017-08-01 15:08 How to overcome the lack of Perl's \G in JavaScript code? »
In Perl, when one wants to do continuous parsing on a string, it can be done something like this my $string = " a 1 # "; while () { if ( $str...
(2) odpowiedzi
2017-07-29 07:07 separate first middle last name C# »
Goal: parse name when user enters name, and have a message box display with first middle and last name. Right now it only works when you type in three...
(4) odpowiedzi
2017-07-18 11:07 How can I check if a string contains a number between two brackets and return the location? »
Say I have str = "qwop(8) 5" and I want to return the position of 8. I have the following solution: import re str = "qwop(8) 5" regex = re.compil...
(2) odpowiedzi
2017-06-22 11:06 Extracting Json from xml text file in iOS Swift »
i have to extract and parse json from a text file, i know how to parse json but i'm just unable to extract it correctly from xml format. this is my xm...
(1) odpowiedzi
2017-06-11 13:06 Convert string shortcodes to array without wordpress function »
I have a string containing multiple shortcodes like this: // string contain multi shortcode $string = '[code_1] [code_2 attr_2="test2"]Here2[/code_2]...
(1) odpowiedzi
2017-06-01 07:06 What is the meaning of the 'send' keyword in Ruby's AST? »
I am trying to learn the Ruby lexer and parser (whitequark parser) to know more about the procedure to further generate machine code from a Ruby scrip...
(2) odpowiedzi
2017-05-14 12:05 How to parse multiple integers »
So I want to parse multiple integers by dividing them by , or space. Let's say user is only allowed to enter 4 numbers max. So how do I make multiple ...
(1) odpowiedzi
2017-05-07 08:05 Take a string, turn it into some DB commands (C#) »
I need to write something in C# that allows users to query data in a human-readable format. So in a textarea, they would type in this: Students.Class...
(1) odpowiedzi
2017-04-11 18:04 How to solve a control flow graph for pure expressions or functions? »
I have a simple, high-level assembly language, for which I can generate control flow graphs. I'm trying to solve/parse those control graphs for pure e...
(0) odpowiedzi
2017-04-11 17:04 Parsing a "simple" grammar »
Sorry in advance; I am sure this question will seem almost idiotic to people who are used to playing with parsers and grammars, but these are foreign ...
(1) odpowiedzi
2017-03-31 07:03 Android JSON parsing error cannot be converted to JSONArray »
I'm fairly new to Android dev, and am trying to write a programme to parse some JSON from a website and output it in a ListView. However, when I run m...
(5) odpowiedzi
2017-03-21 15:03 Java/Kotlin JSON parsing improvement »
I consume an API which gives me this type of JSON: { "data": { "name": "Start", "pid": "1", "position": { "data": { "x": ...
(0) odpowiedzi
2017-02-24 10:02 In Python, how to parse a string representing a set of keyword arguments such that the order does not matter »
I'm writing a class RecurringInterval which - based on the dateutil.rrule object - represents a recurring interval in time. I have defined a custom, h...
(2) odpowiedzi
2017-02-19 17:02 read multiline strings with ruby, broken by "\" »
in some RPM spec files (for instance), there are multiline strings which look like: %build export CFLAGS="%{optflags} -fomit-frame-pointer \ -W -Wall...
(2) odpowiedzi
2017-02-12 18:02 PHP to Parse a HTML page and output a certain div »
So I've been trying to embed a part of a website within my website due to security reasons I cannot disclose the website that I am trying to embed so ...
(1) odpowiedzi
2017-02-10 16:02 Regex challenge: changing formats of negative numbers »
First of all, I think I have to apologize for not having that much knowledge of regular expressions (yet). I have searched and searched, but haven't f...
(1) odpowiedzi
2017-01-31 02:01 Removing <head> issues, I need guide/assistance »
So guys, i'm make a web parser it was good but i saw that some words inside <head> is screwing everything up (and <strong> in the body too...
(1) odpowiedzi
2017-01-29 06:01 Parse PHP into HTML style parameter »
I want to make the style parse from the information given in the query. I have the bgcolor & text color that I want displayed listed in my table,...
(0) odpowiedzi
2017-01-25 18:01 Insert a large csv file, 200'000 rows+, into MongoDB in NodeJS »
I'm trying to parse and insert a big csv file into MongoDB but when the file extends 100'000 rows I get a bad response from the server. And the files ...
(1) odpowiedzi
2017-01-04 23:01 How does ruby parse 2 /3/ 4 as 2 ÷ 3 ÷ 4? »
A lot of ruby's syntax and parsing is relatively logical, but I am confused as to how ruby knows, from context, that 2 /3/ 4 is 2 ÷ 3 ÷ 4 instead of...
(1) odpowiedzi
2016-12-29 03:12 BeautifulSoup `find_all` generator »
Is there any way to turn find_all into a more memory efficient generator? For example: Given: soup = BeautifulSoup(content, "html.parser") return ...
(3) odpowiedzi
2016-12-24 01:12 Python: how to Parse and check the time? »
How do I extract the IP address that occurs 10 times within a one-second time interval? In the following case: 241.7118.197.10 28.252.8 ...
(2) odpowiedzi
2016-12-21 10:12 How to parse files that cannot fit entirely in memory RAM »
I have created a framework to parse text files of reasonable size that can fit in memory RAM, and for now, things are going well. I have no complaints...
(6) odpowiedzi
2016-12-19 12:12 ruby rspec in `block (2 levels) in <top (required)>' »
I have problems with error message ./spec/models/lib/parsers/s_reality_cz/matcher_spec.rb:12:in `block (2 levels) in ' in every rspec test. What I'm d...
(1) odpowiedzi
2016-12-01 14:12 split String by space separated »
I need to split words by space separated in java, so I have used .split function in-order to achieve that like as shown below String keyword = "appl...
(5) odpowiedzi
2016-12-01 14:12 Parsing C# Conditional Compilation statements in roslyn »
How do I parse C# conditional compilation statement using Roslyn. In the following code, I want Roslyn to give the Conditional compilation statement ...
(2) odpowiedzi
2016-11-20 10:11 Ruby on sinatra, JSON::parserError issue and 757: unexpected token »
I use rest API on Ruby with sinatra. I got payment information from IAMPORT,,, def get_authrestapi() @key = IMP_KEY @secret = IMP_SECRET ...
(1) odpowiedzi
2016-11-19 11:11 How can the PL/SQL grammar included with ANTLR4 be tested? »
I'm just getting started using ANTLR, and want to try test parsing some simple PL/SQL statements using the plsql.g4 grammar. I am following the format...
(1) odpowiedzi
2016-11-14 13:11 how can I store a string without "" in common lisp? »
Im trying to store in a: (seft a (read-from-string ".")) in order to get a = . not a = "." but it doesnt work. ...
(2) odpowiedzi
2016-11-09 10:11 Is there a way to force an attoparsec not to backtrack? »
I've written some parsers using Attoparsec but only now realised that I don't always want them to backtrack on failure, but attoparsec parsers always ...
(0) odpowiedzi
2016-11-05 11:11 Creating a JRuby parser implementation to generate AST from java file »
I am currently trying to parse the following java code to get an AST from my .java files in a jrubyparser implementation: import static org.junit.Ass...
(1) odpowiedzi
2016-10-26 17:10 Why does Roslyn have two versions of syntax per language? »
I have been looking at the Roslyn code base and noticed that they have two versions of syntax(One internal and one public). Often these appear to be r...
(1) odpowiedzi
2016-10-26 08:10 How can I retrieve Enum from char value? (C#) »
I have the following enum public enum MaritalStatus { Married = 'M', Widow = 'W', Widower = 'R', Single='S' } In one function I hav...
(3) odpowiedzi
2016-10-24 21:10 Set literal gives different result from set function call »
Why does the set function call wipe out the dupes, but parsing a set literal does not? >>> x = Decimal('0') >>> y = complex(0,0) &g...
(2) odpowiedzi
2016-10-13 23:10 How can I find all known ingredient strings in a block of text? »
Given a string of ingredients: text = """Ingredients: organic cane sugar, whole-wheat flour, mono & diglycerides. Manufactured in a faci...
(1) odpowiedzi