Questions tagged [string]

A string is a finite sequence of symbols, commonly used for text, though sometimes for arbitrary data.

0 votes
2 answers
19 views

How to extract content between CDATA tags in Java

I managed to get the JSON-LD structured data of a page using Java matcher and pattern -- between <script type="application/ld+json"> .... </script> The result I received is a ...
user avatar
0 votes
0 answers
10 views

Specific values in Datafragme 'could not convert string to float: '3,8....'

I've been trying to use some numpy and sklearn algorithms on a dataframe which I unfortunately cant't share. It is basically a ragular dataframe where single values in some of the colums can not be ...
user avatar
-3 votes
3 answers
38 views

checking if input1 and input2 is in list of strings

I am trying to print names that equal to inputs for example : if input1 = 'A' and input2 = 'G' print("Arsalan Ghasemi") so my code works but for some names it's not working if input = '...
user avatar
1 vote
1 answer
23 views

Identification of special characters in a string using R

I have a data field which consists of firm names that may contain special characters such as @,/,-. I need to identify whether the data field contains any special characters. I have tried the ...
user avatar
0 votes
0 answers
10 views

How to extract a part of a string where bytecodes are involved, using python? Ex: get Beta_07 from the string b'6\x04\xd0\x00\x80\xfe\xacBETA_07

I have the below string and I need to extract 'BETA_07' out of this string using python. Can someone suggest a way to do it? This string come out of a zebra barcode reader. BETA_07 is a example and it ...
user avatar
0 votes
1 answer
44 views

Search Multiple Values through one TextBox

How to achive searching for multiple values in a textbox. Ex: =,Using This code can achieve only a single search in the text box. private void button1_Click(object sender, EventArgs e) { ...
user avatar
0 votes
0 answers
31 views

How do use local variables when passing in strings from a text file?

I'm using xlsxwriter to build an excel sheet. I'd like to have a text file that contains formulas I can iterate through. Instead of writing the formula_line to output.xlsx, I want formula_line to pick ...
user avatar
-1 votes
2 answers
22 views

How to remove known portion from a text and get the arbitrary strings from it in js?

I have a text format like this: what is your favorite color from these? Here color can be replaced with anything the user wants. For example food, juice, movie, book, etc. Now I want to remove the ...
user avatar
  • 35
-2 votes
1 answer
36 views

How to solve string equation in Java? [closed]

Say for instance I'm giving a string that is: "11.5 * n * -3.7/8" and then I'm given a result, for instance, 14. How would I create the code to solve for n? I know I can solve this using ...
user avatar
-1 votes
0 answers
10 views

Casting an OrderedDict string value to Boolean [duplicate]

from collections import OrderedDict x = OrderedDict([('is_active', 'false')]) print (x["is_active"]) # false print (bool(x["is_active"])) # True Can someone explain why the 2 ...
user avatar
0 votes
1 answer
22 views

MySQL: How to trim varying characters in strings so the formats match?

I have a column with differing records that I want modified so that the formats match: This is what it looks like currently: col UPL_2019_NF_R1_01_COST.csv ...
user avatar
0 votes
1 answer
53 views

Changing braces in a string with data from a json

I have a template string that I want to change words with {{}} around them to data of a similar name from a json file. I am using google apps script for this. Ex. Hello my name is {{First Name}} {{...
user avatar
  • 3
-1 votes
0 answers
24 views

How to take specific values from certain parts of string message response from WebSocketServer

I've been working on application that is connected to API- which is based on WebSocket where each message is a JSON encoded object as a transport protocol. I got the response message, where I ...
user avatar
-2 votes
0 answers
22 views

Find matching strings in two arrays? Javascript [duplicate]

I am trying to find matching strings in two arrays and supply the times that it is replicated in an array. So for example in the below example var arrayStrings = ["Hello", "Hello", ...
user avatar
2 votes
2 answers
22 views

How to replace accented characters in PySpark?

I have a string column in a dataframe with values with accents, like 'México', 'Albânia', 'Japão' How to replace letters with accents to get this: 'Mexico', 'Albania', 'Japao' I tried many solutions ...
user avatar

15 30 50 per page
1
2 3 4 5
11726