string-parsing Questions
4
Solved
I'm trying to strip the version out of a package name using only Bash. I have one solution but I don't think that's the best one available, so I'd like to know if there's a better way to do it. by ...
Pulmonary asked 24/5, 2010 at 17:44
12
Solved
So, due to lack of methods like Long.valueOf(String s) I am stuck.
How to convert String to Long in Kotlin?
Laureenlaurel asked 22/10, 2013 at 13:36
21
Solved
I need some help with this, I have a fullname string and what I need to do is separate and use this fullname string as firstname and lastname separately.
Cila asked 8/7, 2011 at 18:57
5
Solved
I am parsing a file that has lines such as
type("book") title("golden apples") pages(10-35 70 200-234) comments("good read")
And I want to split this into separate fields.
In my example, there...
Calumniation asked 10/3, 2012 at 7:37
18
Solved
I want to change persian numbers which are saved in variable like this :
string Value="۱۰۳۶۷۵۱";
to
string Value="1036751";
How can I use easy way like culture info to do this please?
my sa...
Jig asked 20/8, 2013 at 16:56
6
Solved
I've spent the past two hours debugging what seems extremely unlikely. I've stripped the method of a secondary Android Activity to exactly this:
public void onClick(View v) {
String str = "25...
Mur asked 11/9, 2011 at 7:17
14
I have a string like this:
"o1 1232.5467 1232.5467 1232.5467 1232.5467 1232.5467 1232.5467"
How do I extract only "o1 1232.5467"?
The number of characters to be extracted are not the same always...
Jempty asked 8/4, 2010 at 12:22
3
Solved
How can I parse this string on a javascript,
var string = "http://www.facebook.com/photo.php?fbid=322916384419110&set=a.265956512115091.68575.100001022542275&type=1";
I just want to get t...
Gym asked 28/1, 2012 at 13:21
6
Solved
i am new to regex. I am trying to parse all contents inside curly brackets in a string. I looked up this post as a reference and did exactly as one of the answers suggest, however the result is une...
Lido asked 20/3, 2012 at 18:2
3
Solved
Im trying parse a String with a date to convert it into a Date format. Strings are in the following format.
Wed Mar 30 00:00:00 GMT+05:30 2016
But when im parsing the String i get a error saying,...
Sarpedon asked 30/3, 2016 at 12:43
22
Solved
I'm trying to convert numbers taken from a UITextField, which I presume, are actually Strings, and convert them to Float, so I can multiply them.
I have two UITextfields which are declared as foll...
Elspet asked 6/6, 2014 at 15:35
12
Solved
An input element contains numbers a where comma or dot is used as decimal separator and space may be used to group thousands like this:
'1,2'
'110 000,23'
'100 1.23'
How would one convert th...
Melanoid asked 15/9, 2011 at 13:42
2
I have a GAS project and I need to parse some URLs into their hostname and pathname properties as follows.
Code.gs
const url = new URL( 'http://www.example.com/cats', );
const { hostname, pathnam...
Lisandralisbeth asked 31/5, 2020 at 18:44
5
Solved
There are a lot of SO questions that seem to address variations of this question. But they tend to be complex regex answers and I am hoping I can find something simpler.
Given location.host value...
Alexandros asked 2/5, 2012 at 21:47
3
Solved
I'm working on an assignment and as part of it I need to extract the integer from a string.
I've tried using the atoi() function, but it always returns a 0, so then I switched up to strtol(), but ...
Agglomeration asked 25/3, 2020 at 14:0
2
use std::fs::File;
use std::io::prelude::*;
use std::io::BufReader;
use std::iter::Iterator;
fn main() -> std::io::Result<()> {
let file = File::open("input")?; // file is input
let mut...
Russ asked 9/12, 2019 at 6:40
4
How can you remove blank lines from a text file in C#?
Meseems asked 25/6, 2011 at 19:35
4
Solved
I am using this to split strings:
let split = Str.split (Str.regexp_string " ") in
let tokens = split instr in
....
But the problem is that for example here is a sentence I want to parse:
po...
Audrey asked 21/4, 2014 at 19:57
6
Solved
Given URI strings like:
http://www.somesite.com/abc
http://www.somesite.com/alpha/beta/abc
http://www.somesite.com/alpha/abc
What's the most elegant way in Ruby to grab the abc at the end of the...
Hocus asked 10/9, 2012 at 5:4
3
Solved
Spring-boot RESTful server side;
a testing method that will return a string:
@RequestMapping(value = "test", method = RequestMethod.GET)
public ResponseEntity<String> test(HttpServletReques...
Witness asked 12/9, 2018 at 20:14
4
Solved
According to the documentation for strtoul, regarding its return value...
This function returns the converted integral number as a long int value. If no valid conversion could be performed, a ze...
Smokeproof asked 13/12, 2018 at 14:29
4
Solved
Given a very large string. I would like to process parts of the string in a loop like this:
large_string = "foobar..."
while large_string:
process(large_string.pop(200))
What is a nice and effi...
Ideate asked 15/6, 2012 at 12:24
8
Solved
In Matlab, I have a string containing a path to a file:
path = 'C:/Data/Matlab/Dir/file.m'
I want now want to extract the 'Dir' part of the string. One way to do this is:
[first, second, third,...
Lacrimatory asked 19/3, 2014 at 14:37
4
Solved
Although there are similar questions, I can't seem to find a working solution for my case:
I'm encountering some annoying hex chars in strings, e.g.
'\xe2\x80\x9chttp://www.google.com\xe2\x80\x9d...
Redtop asked 13/4, 2016 at 12:18
1
I have some troubles compiling a c++ code including exprtk. I want to compile an given example of the package (I called it parser.cpp):
#include <cstdio>
#include <string>
#include "ex...
Libertylibia asked 20/8, 2016 at 15:2
1 Next >
© 2022 - 2024 — McMap. All rights reserved.