I'm trying to create a system in which I can validate a string to check if it's a url or not. (https://www.google.com/) I found the flutter package validator b
let's say I have a string var a = "#bb #cccc #ddddd\u{ef}" and i am setting it to textview like this let text = a.trimmingCharacters(in: .whitespacesAndNe
In this program, the user is allowed to enter words of up to 20 letters, which are stored in another array and printed from the end. But there is error on my co
this sequence of symbols is required as a password in an app: 9h/#13/'!O!Nr},w_T0 6!ws%N\c^i,4" How can store this to a variable/string?
I don't understand why JavaScript works this way. console.log("1" + 1); console.log("1" - 1); The first line prints 11, and the second prints 0. Why does Jav
A = {'1': '[1,2]', '2': '[3,4]', '3': '[5,6]', '4': '[7,8]', '5': '[9,10]' } B = {'1': '70', '2': '70', '3': '70', '4': '70', '5': '70' } How to convert this m
Newbie to unix/shell/bash. I have a file name CellSite whose 6th line is as below: btsName = "RV74XC038", I want to extract the string from 6th line that i
I am looking to complete this code but cannot get it to execute the right way. The program connects two user-inputted names into one full name and then looks fo
These two print statements produce the same results and at least to me the first version looks more readable. Should I stick with the f' versi
I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals()
I have some data with Japanese characters from survey data. Some of the survey questions and answers (multiple choice) are given in both English and Japanese, e
I'm new to Python and I try to convert following txt to two lists, splitting Country from Capital. Afghanistan | Kabul Albania | Tirana Algeria | Algiers ... I
I'm trying to create a program which the user inputs the number of items (rows) and give each one of them a name (scanf) with the max of 30 characters. I want t
I'm trying to scrape the votes from SofaScore with google sheets using the importxml function. I'm running into an issue because the class name has a random str
How do I reverse each uppercase and lowercase ("I am A Great human") to ("I ma A Taerg namuh")? This is the code I Have: function wordsReverse(str) { let wo
this code is to take an equation from the user in the form of a string and then the program configures the confessions and store them in a dynamic array; now I
This is a very common problem in which we would have to find the longest substring which is also a palindrome substring for the given input string. Now there ar
Eclipse has an option that copy-paste of multi-line text into String literals will result in quoted newlines. Preferences > Java > Editor > Typing >
My table has two columns, id and a. Column id contains a number, column a contains an array of strings. I want to count the number of unique id for a given arra
This is my first attempt at LCS. The problem I have is with the last portion. When the two input strings are 'mango' and 'man', it seems that cout keeps messing