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

learn more…| top users | synonyms (4)

2
votes
2answers
36 views

How to efficiently sort Python strings containing floating numbers AND a leading + or - sign at multiple and varying locations

Previous solutions focus on strings where numbers are separated from letters by a dash (sorting strings containing numbers and letters) or another consistent delimiter (e.g., '_', python sort strings ...
0
votes
0answers
11 views

DHL XML Invalid Markup With Quotes How to Submit XML String [duplicate]

I am trying to submit this xml to DHL gateway and it gives me an invalid markup error. There are double quotes in the xml and I am not sure how to format the chr(34) characters to take care of the ...
0
votes
0answers
15 views

Speed up words search in HTML

Working on web crawler which search for a set of words in html. I would like to speed up searching.I use Scrapy but this code doesn't depend on it in my opinion. What I do now is to extract text ...
0
votes
1answer
15 views

Java - Extract relevant strings/chars from specific index in file

I want to extract relevant strings/chars from specific indexe in a txt file. I know how to read the text file line by line but i need help with extracting relevant strings from fixed positions of the ...
-3
votes
0answers
44 views

Data Structure string not able to assign std:string

I am working on a project for school where I am required to use a data structure with a few strings and an enumerated datatype.Below. the SReferee string id needs to be assigned after a user inputs ...
0
votes
0answers
10 views

in python, how can I match a part of a string to another string, but not trigger a false positive with this example:

In python, I need to compare testString to stringA to stringB, but not trigger a false positive with stringC, but still trigger a match to stringA. Please see the example below:testString="Ft"...
-2
votes
0answers
12 views

Explanation of Python formatter %r [duplicate]

I understand the difference between say %s and %d. I haven't come across a clear explanation of %r though. From my research I already understand that this is a formatter that is used in debugging and ...
0
votes
2answers
54 views

string concatenation in loop [duplicate]

Good evening all,Probably a simple fix but I just cannot find it.I made this to print out every second chr from a string:Scanner sc=new Scanner(System.in);System.out.println("Enter a ...
0
votes
1answer
39 views

Java String replace issue

I have a code in which I am using replace method on Java String, but it is not working.. Please point out the mistake.. static String[] cavityMap(String[] grid) {String[] ans=grid;for(...
0
votes
1answer
38 views

How can I figure out which tiles move and merge in my implementation of 2048?

I am building a little 2048 WinForms game just for fun.Note that this is not about a 2048 AI. I am just trying to make a 2048 game that can be played by humans.I first decided to use 0-17 to ...
0
votes
1answer
12 views

Setting up multiple parameter Values in a Sql query

Im trying to pass Multiple Parameter values from one jsp page to another jsp page.How do i pass these values in a Sql query.First page: `<th>Revenue</th><select name="...
1
vote
1answer
23 views

Excel string to HTML code / inserting text mid string

How do I insert text (a URL link) from another cell (B1) into this cell (C1) containing HTML code like this:<h4>Features</h4><ul><li><a href="http://stackoverflow.com.mevn.net/" target="blank">Available ...
3
votes
1answer
41 views

Assign a string to constant struct

I have the following struct,struct example_struct { int number ;char word[100] }Which I initialize in my code as a constant structconst struct example_struct example {.number=...
0
votes
5answers
45 views

Expression to find multiple spaces in string

We handle a lot of sensitive data and I would like to mask passenger names using only the first and last letter of each name part and join these by three asterisks (***), For example: the name '...
1
vote
1answer
39 views

Escaped backslash doubled in object

I have a string with a backslash in it: const string='/\\.txt/ which return the expected result (/\.txt/) but if I put this string to an object the escapes backslash is just duplicate itself, so my ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,