Questions tagged [string-iteration]
20 questions
-1
votes
1 answer
Extract multiple strings from a long string efficiently in Javascript
I am trying to extract multiple strings using different patterns from one long string. I have done this successfully using different Regex queries but I feel this is not very efficient. Here is an example of the input string:
const input =…

craig-nerd
- 718
- 1
- 12
- 32
-1
votes
1 answer
C# Renaming strings? || Giving a string the name of a string?
I'm learing C# right now using Visual Studio Community.
I'm trying to create a method that creates a variable amount of strings, each named differently.
I want the name of the string to be "word" + wordcount.
I predefined wordcount as 0 and it…

Mimimi
- 1
- 1
-1
votes
1 answer
Why in outer loop isstringstream iterator is iterating only once ,while reading from file , though there are other lines exist in that file?
Inner loop is executing as many times as there is line in regarding files.
But outer loop is executing only once, regardless of there are other line presence in regarding files.I want to compare values from each line of first file (containing m…

SK17
- 182
- 4
- 15
-3
votes
1 answer
String iteration programming
I'd like to write a function able to generate an array of string with iteration in Go programming language.
Enter a unique name for the signal path in the field titled Description. Since the field features an iterator, multiple, consecutively…

Y. Boujraf
- 67
- 8
-4
votes
1 answer
I have given nested list accessing via for loop, but I can't getting result?
patientsList=[['sagar','9856782311'],['mahsh','7865423158']]
patient=['mahsh','7865423158']
search=input("Enter mobile number of patient to search")
for i in patientsList:
for j in patient:
if search==patientsList[i][j]:
…

Shubham
- 3
- 3