text-parsing Questions
7
Solved
I have the following string which will probably contain ~100 entries:
String foo = "{k1=v1,k2=v2,...}"
and am looking to write the following function:
String getValue(String key){
// return t...
Tumble asked 29/10, 2009 at 15:53
2
Not sure if the title is well chosen...
I am trying to simulate text-selection in HTML/JS/CSS to get rid of the action bubble on mobile device when truly selecting texts.
To be more specific, I'm...
Varied asked 28/6, 2012 at 18:1
2
Solved
This is a very simple thing, so I want to keep it as simple as it sounds. All I want is to load a bunch of key-value paires from a file, and populate them in to a map. I do not really care how the ...
Inhospitable asked 8/6, 2012 at 15:7
6
Solved
I know I can use Awk, but I am on a Windows box, and I am making a function for others that may not have Awk. I also know I can write a C program, but I would love not to have something that requir...
Olecranon asked 1/4, 2009 at 5:9
2
Solved
I have a PHP variable ($content) where I need to find a certain pattern that looks like this:
[gallery::name/of/the/folder/]
I would like to search:
- starting with literal characters `[gallery::`...
Philosophical asked 13/4, 2012 at 14:25
2
Solved
I imaging this is going to be a simple task but I can't find what I am looking for exactly in previous StackOverflow questions to here goes...
I have large text files in a proprietry format that l...
Androgyne asked 2/11, 2011 at 12:27
5
Here is what I want to do:
I need to create a search engine parser that uses the following operators:
Apples AND Oranges (AND operator)
Apples OR Oranges (OR operator)
Apples AND NOT Oranges (AN...
Box asked 29/7, 2011 at 11:26
4
Solved
I'm trying to see if I understand depedency injection.
I have a project that is used as a parser. It can parse delimited text, key-value and will also regex.
The first way this was done was in o...
Goldsmith asked 12/3, 2011 at 18:47
4
Solved
Problem
I'm trying to find a flexible way to parse email content. Below is an example of dummy email text I'm working with. I'd also like to avoid regular expressions if at all possible. However, ...
Crossley asked 28/1, 2011 at 18:42
1
Solved
Hi I want to parse a bibtex publications file and sort for specific fields (e.g. year) and filter certain content, to then put it on a website. I came across pybtex, which works as far as reading a...
Cadmium asked 28/10, 2010 at 0:3
3
Solved
I have this line of string
Fruits-banana|apple|orange:Food-fries|sausages:Desserts-ice cream|apple pie
the : (colon) is the separator for the main topic, and the | is the separator for the differen...
Soapberry asked 25/10, 2010 at 19:0
1
I'm trying to use the pretrained parsing model engmalt. I downloaded it, I unpacked it in the directory where I downloaded the MaltParser, and I wrote in the prompt
java -Xmx1024m -jar malt.jar -...
Thithia asked 15/10, 2010 at 16:38
2
I am looking for something like HTML::TableExtract, just not for HTML input, but for plain text input that contains "tables" formatted with indentation and spacing.
Data could look like this:
Her...
Belden asked 14/10, 2010 at 3:10
4
I'm trying to figure out how to parse a string in this format into a tree like data structure of arbitrary depth.
"{{Hello big|Hi|Hey} {world|earth}|{Goodbye|farewell} {planet|rock|globe{.|!}}}"
...
Freebooter asked 29/9, 2010 at 22:35
2
Solved
Nine years ago when I started to parsing HTML and free text with Perl I read the classic Data Munging with Perl. Does someone know if David is planning to update the book or if there are similar bo...
Hebdomad asked 27/9, 2010 at 0:37
2
Solved
How would you parse the values in a string, such as the one below?
12:40:11 8 5 87
The gap between numbers varies, and the first value is a time. The following regular expression does not separa...
Faunia asked 22/6, 2010 at 1:18
2
Solved
I need a little guidance in writing a grammar to parse the log file of the game Aion. I've decided upon using Antlr3 (because it seems to be a tool that can do the job and I figured it's good for m...
Mandrill asked 12/5, 2010 at 10:27
5
Solved
Is there any better way to get take a string such as "(123) 455-2344" and get "1234552344" from it than doing this:
var matches = Regex.Matches(input, @"[0-9]+", RegexOptions.Compiled);
ret...
Discus asked 14/4, 2010 at 3:36
3
Solved
Here's some sample code:
import java.util.Scanner;
class In
{
public static void main (String[]arg)
{
Scanner in = new Scanner (System.in) ;
System.out.println ("how many are invading?") ;
...
Dymphia asked 22/3, 2010 at 22:31
5
Solved
What do people mean when they say "Perl is very good at parsing"?
How is Perl any better or more powerful than other scripting languages such as Python or Ruby?
Guillotine asked 11/12, 2009 at 14:53
6
When I write Erlang programs which do text parsing, I frequently run into situations where I would love to do a pattern match using a regular expression.
For example, I wish I could do something l...
Laos asked 2/11, 2009 at 11:12
9
I need to parse a transcript of a live chat conversation. My first thought on seeing the file was to throw regular expressions at the problem but I was wondering what other approaches people have u...
Vincennes asked 21/10, 2008 at 23:0
4
Solved
I figure regex is overkill also it takes me some time to write some code (i guess i should learn now that i know some regex).
Whats the simplest way to separate the string in an alphanumeric strin...
Grits asked 27/9, 2009 at 19:2
2
Solved
I'm trying to create a generalized HTML parser that works well on Blog Posts. I want to point my parser at the specific entrie's URL and get back clean text of the post itself. My basic approach (f...
Love asked 18/7, 2009 at 7:27
13
Solved
I've already worked out this solution for myself with PHP, but I'm curious how it could be done differently - better even. The two languages I'm primarily interested in are PHP and Javascript...
Letty asked 24/6, 2009 at 13:12
© 2022 - 2024 — McMap. All rights reserved.