Questions tagged [string]

0 votes
2 replies
I am currently trying to save a set of integers in a int array, by redefining string into numbers, then store it in the array
I am trying to convert input text/numbers (string), which will include any characters, but I want to separate the numbers from the characters and...
asked 1 month ago
1 votes
2 replies
How is it possible to extract sub-strings using keywords and index?
I'm trying to get certain sub-string following a keyword from a data string. These colleceted sub-strings are then joined together. Is there a...
asked 1 month ago
2 votes
3 replies
How to add a “…” after a particular word/character limit in PHP?
I am working on a php code as shown below: <div class="case-breaking__content"> <p><?php echo the_title(); ?></p...
asked 1 month ago
1 votes
3 replies
Is this string addition a valid expression?
I was curious if the compound assignment operators are valid for multiple parameters. My guess is += will have no side-effect but may not be the...
0 votes
4 replies
Prepend zeros to int java [duplicate]
This question already has an answer here: Right pad with zeros 7 answers...
asked 1 month ago
-2 votes
0 replies
C# add string[] [duplicate]
Is there a built in function in .NET 2.0 that will take two arrays and merge them into one array? The arrays are both of the same type. I'm gett...
asked 1 month ago
-4 votes
1 replies
How to replace a multi-character character constant with one character [closed]
I'm attempting to replace '%7C' with a '|' in C but i'm getting a multi-character character constant warning. I was wondering if it was possible...
asked 1 month ago
1 votes
1 replies
Regex for matching a string until the first occurrence of a delimiter [duplicate]
This question already has an answer here: In regex, match either the end of the string or a specific character...
0 votes
0 replies
How do I concatenate strings in a no_std environment? [duplicate]
This question already has an answer here: How can I use the format! macro in a no_std environment?...
asked 1 month ago
-1 votes
1 replies
How to create a link within HTML based on query strings [closed]
I would like to be able to dynamically generate the source of an image based off QueryString parameters inside of my URL. EX: URL = http://webs...
asked 1 month ago
0 votes
1 replies
Scanf in visual studio not accepting multiple cases of characters
I'm creating a conversion project for letters/numbers ASCII table. My code is supposed to be 'interactive', so the user would type 'y' or 'n' to...
asked 1 month ago
0 votes
2 replies
Sort columns numerically in R [duplicate]
This question already has an answer here: How to sort a character vector where elements contain letters and numbers in...
asked 1 month ago
-2 votes
1 replies
How do i use the % placeholder to write something in python? [duplicate]
This question already has an answer here: Python string formatting: % vs. .format...
asked 1 month ago
2 votes
3 replies
“Is there a way to get sequence of most consecutive alphabet?”
I am working on a python problem which has a string such as “aaabbcc” and a number n (integer). I have to display a sequence of any Alphabetic c...
asked 1 month ago
0 votes
0 replies
customize joining strings from array with characters [duplicate]
This question already has an answer here: Join List<string> Together with Commas Plus “and” for Last Element...
asked 1 month ago
-4 votes
1 replies
Splitting a long string with Python
Say that I have a long string (as an input from a txt file) that contains terms like 2*log(y) + 5*x + z3 -65./5.*y + ... and I want to split it u...
asked 1 month ago
2 votes
1 replies
How to get list as an input from command line python? [duplicate]
This question already has an answer here: How do I parse a string representing a nested list into an actual list? [dupl...
asked 1 month ago
-2 votes
0 replies
Need to understand memory usage of String object [duplicate]
I always thought Java was pass-by-reference. However, I've seen a couple of blog posts (for example, this blog) that claim that it isn't. I don...
asked 1 month ago
0 votes
2 replies
How do I decode radar data read by Python/socket like b'\x08\x00\x00\x00' to numbers
I'm developing a Python3 program to process data from radar. In general, radar send data(hex numbers) to a port of my computer and I use socket t...
asked 1 month ago
0 votes
0 replies
Is there a java library or solution, other than JavaFX, to plot a line chart when the x-axis values are string? [closed]
I am trying to plot a line chart in java with integer numbers on the y-axis and string on the x-axis. I have already tried jFree and xChart which...
asked 1 month ago
0 votes
1 replies
How would you add spaces in front of every capital letter in a macro string, in SAS?
I have several macro variables like this: %let name=MyCamelisedString; And I'm searching for a formula to automatically add spaces in front of...
asked 1 month ago
0 votes
1 replies
How to calculate the occurence of substring in dictionary values?
I need to calculate the occurrences of a motif (including overlaps) in sequences (motif is passed in the first line of standard input and the seq...
asked 1 month ago
-1 votes
0 replies
Java .equals Method Not Working As Intended [duplicate]
This question already has an answer here: Java string.equals if statement not working [closed]...
asked 1 month ago
2 votes
3 replies
Why doesn't str != “hello” && “goodbye” work?
I'm trying to exit the "do" function if the strings "hello" or "goodbye" are entered, this function works for just "hello" but not "goodbye". Ca...
asked 1 month ago
4 votes
2 replies
Find indices of sequential duplicates in string in R [duplicate]
This question already has an answer here: Find start and end positions/indices of runs/consecutive values...
asked 1 month ago