I have the textblock below and I am trying to separate into 3 blocks with regex. When you see the name field it would start a new block. How can I return all
I'm trying to print each item in the following two lists: lNames = ['John','David','Michael'] lAges = [45,14,32] with the format: "Person 0, Name: John, Age 3
import java.util.Scanner; class Palindrome_string { public static void main() { System.out.println("\f"); Scanner sc = new Scanner(Syste
I am receiving the input date as below. 2022-05-05 18:08:13.311951 +0:00 And I am trying to convert this to below format which follows ISO8601 format. 2022-05-
I am using R to work with some dataframes. My issue is related on how to check if values in a variable in a first dataframe match with values in another datafra
How can I modify or replace the .lower method of strings to support Arabic text? for example, there's a difference between "سارة" and "&
I have a text and I need to match all text parts except given words with regexp For example if text is ' Something went wrong and I could not do any
convert a string to a new string where each character in the new string is "(" if that character appears only once in the original string, or ")" if that charac
I've been using the idiom below for some time now. And it seems to be the most wide-spread, at least on the sites I've visited. Is there a better/different way
When typing the following code ... (easily testable with W3schools' editor) <?php $basecss = '.class { margin-bottom:0 } /*1234567890'; $basemincss = ".
Here is a simplified JSON payload that I want to be able to change (the original one is much longer) { "request": { "jsonRequest": { "Alpha": {
Say I have three example strings text1 = "Patient has checked in for abdominal pain which started 3 days ago. Patient was prescribed idx 20 mg every 4 hours." t
TimeTemp displays as such 168@06:43:23AM stationTime displays opening and closing times of service area stations as such 6AM-10AM I’ve separated TimeTemp
Language: Scala I'm working on some tail recursion questions in Scala. (GOAL) A function that counts the number of ones in a list. The function takes a list of
I want to split 600 columns (listed in a vector) at a delimiter (in this case a /) into 2 new columns for each one (also listed as vectors). I've worked out bas
I'm working on an exercise to calculate the length of a string using pointers. Here's the code I've written below: int main() { std::string text = "Hello W
Requirement: I am receiving an email with a template and I need to filter out some text from the email. I am converting all the email body text as a string. ema
East_Seed_1="MIA"; East_Seed_8="ATL"; for i=1:7 s=rand; if s<MIA_prob_vs_ATL s=1; I want to create an algorithm that, gi
I have the following array: Array ( [0] => James [1] => Mike [2] => Liam [3] => Shantel [4] => Harry ) Arra
Consider the custom toString() implementation of a bean: @Override public String toString() { String.format("this is %s", this.someField); } This yields