A string is a sequence of zero or more characters. It is commonly used to represent text or a sequence of bytes.

learn more… | top users | synonyms (3)

-3
votes
1answer
33 views

Java - Get specific word from string

I have a string that is like this: String programList = "List of programs: explorer.exe, conhost.exe, java.exe, something.exe.."; I want to create every word that has the ".exe" to its own string, ...
0
votes
1answer
22 views

Javascript find and replace (customized)

var MyAddress = " Google Ireland Ltd.<br> Barrow Street<br> Dublin 4<br> Dublin<br> Ireland "; Here I can split each line to array: var pieces = ...
0
votes
1answer
16 views

How do I return the subdomain from a URL using a regular expression?

I thought this would be something simple to do with regular expressions but so far the solution is proving to be elusive. Here is the scenario - I want to capture the subdomain portion of a URL but ...
0
votes
1answer
24 views

Python Pandas: String Method to str

I think I have a relatively simply question but am not able to locate an appropriate answer to solve the coding problem. I have a pandas column of string: df1['tweet'].head(1) 0 ...
0
votes
1answer
37 views

Split string after x characters and whitespace

having a bit of a brain melt here and could do with some help on the logic for solving this issue. im basically going to be creating images that are just text based on a user input. Image width is ...
0
votes
2answers
28 views

Concatenate string into file_put_contents

I want to write both a string and an array to a file using file_put_contents in php. To write the array, I'm able to do: file_put_contents('filename.js', json_encode(array( 'status' => ...
2
votes
4answers
46 views

How to name an object reference after a String [duplicate]

For example, we have String name = "Peter"; and we want the particular instance of a hypothetical Employee to be named after this string, as in Employee ____ = new Employee(...); So what do I ...
2
votes
4answers
71 views

How to get the first N sentences from text?

I need to get the first N sentences from a text where the last char of the sentence can be a period, a colon, or a semicolon. For example, given this text: Lorem ipsum, dolor sit amet. consectetur ...
0
votes
0answers
9 views

How to form binary tree in case of Rope data structure?

I am going through http://en.wikipedia.org/wiki/Rope_%28data_structure%29. There, for the string, "Hello_my_name_is_Simon", binary tree is given. I am wondering how that binary tree is formed? Step by ...
-3
votes
0answers
21 views

C# - Purpose of WebClient.UploadString?

I've always wondered how to correctly use the "UploadString" method in C#.. I'm working a bit on PHP programming, but so far I'm quite the noob of it. I assume you'd use PHP as the URi. Or wait, maybe ...
-2
votes
3answers
50 views

How do I deal with empty user input in a Bash script?

When the script asks me for input, I get an error if I just press Return without typing in anything. How do I fix this? Here's the script: #!/bin/bash SUM=0 NUM=0 while true do echo ...
0
votes
2answers
32 views

Parse through multiple values in string variable that are separated by commas

I have a string variable that has multiple values in the following format: 123, xyz, abc It may even have a single value only (in that case there wont be any comma after it) How do I parse through ...
1
vote
2answers
35 views

C++ L“whatever” -> wstring -> basic_string<T>

I'm writing a "string splitter" for a parser, and i want to be able to use both char and wchar_t. I have the following method : static void tokenize(const basic_string<T> &, ...
-1
votes
0answers
20 views

Got stuck in the TypeFace apply on the String NOT on the TextView? [closed]

We can use the TypeFace in the TextView and able to change the format of the text view whatever we need . But I have a string and I am passing this string into a library or I am not able to edit ...
-1
votes
4answers
47 views

In javascript, how do I extract the text out of this string?

TerranceDuncan541 I want to extract the string so that: { first_name: Terrance, last_name: Duncan } I have many in this format. DoloresSimons346 FlorenceCook704 DawnWilkinson171 ...

1 2 3 4 5 2700
15 30 50 per page