I’m trying to edit some text on YouTube channel pages and I want to trim off the subscribers part of the subscriber count. (E.g. 256 subscribers —-> 256). I’m a noob at programming (especially in …
Tag: string
I have an email that I want to parse and make a JSON of. The reason for this is to add the incomming emails to and database with the information. I’m getting the plain email text and want to have this …
Im trying to get every LI element’s content and display every variable as they come in order. I’m using this simple exercise to demonstrate this, since I just wrote it and was sure it would work. …
I have string where I need to convert the entered string into NATO code equivalent. Such as input string abc and get alpha beta charlie So far I have done this code, I would like to compare once I …
I have a string where I need to strip out the letters and the numbers. There will only be one number in the string. So for example this string: “AM12” I would like to split into this: [‘A’,’…
This is difficult to explain, but I’ll do my best… I have an array of strings. Let’s use an example here: var myArray = [ “hello there my friend robert” “hello there friend …
function titleCase(str) { let newStr = ” for(let i = 0; i < str.length; i++){ if(str[i] == 0){ newStr += str[i].toUpperCase()//sets the first character of the String to uppercase ...
Summary of problem: I have written the generic regex to capture two groups from the sentence. Further I need to concatenate the 3rd term of 2nd group to the 1st group. I have used the word and in …
I have given a string consistent of only numbers . Example let inputString = “1234”; Question I have to write a function which will return the string except first even number if any present …
I receive the following payload from an external system. I need to return only the value of the “Cert Hash(sha256)” e.g. 267c797962b5ee69afd7fed3edc3fb41359a08a107fd801ddd5c5fd5925c09bb. …