Learncado
Learncado

Learncado brings together a vast collection of questions and answers. Expand your knowledge, learn new skills, and find solutions to your queries effortlessly. Enhance your learning experience and save valuable time by exploring our website today.

Resources

  • Questions
  • Question By Tags

Help and support

  • Contact
  • About

  • Geniecourse
  • Jetsodeals
  • Rentcado
  • Dealcado
© 2021-2023 Learncado All Rights Reserved.

Search Results (385)

Results for replace

December 3rd, 2023
when replace has the same behavior as replacesAll

> "a a a a aa".replace(/ /, "b") 'aba a a aa' > "a a a a aa".replace(/ /g, "b") 'ababababaa' Can you explain why adding the g causes replace to have t...

javascriptnode.jsregexreplacereplaceall
Read more
November 29th, 2023
Replace malfunction in userscript: adds current URL in front of result

I'm trying to remove unwanted parts in outgoing links on a website with a userscript by replacing them with nothing. jQuery(document).on("mouseenter",...

javascriptreplaceuserscripts
Read more
November 28th, 2023
Make sed to replace capture group with corresponding environment variable

Assuming we have source_file.json of the following content: { "someVar": "__SOME_ENV_VAR__", "anotherVar": "__ANOTHER_ENV_VAR__", "yetAnother...

bashshellsh
Read more
November 28th, 2023
Find and Replace Words that have Uppercase letters in the middle using RegEx for Notepad++

I have a huge list of names. Each names are separated by newline and formatted with comma like the following Lastname, Firstname Lastname, Firstname L...

regexnotepad++
Read more
November 27th, 2023
How do I use lambda to replace for loop and still maintained functional programming?

this is the original code def cage_cats(S): maxtemp = 0 temp = list(set(S)) for i in range(len(temp)-1): for j in range(len(S)-1)...

pythonfunctional-programming
Read more
November 27th, 2023
Replace values in pandas column with lists by values in other dataframe

I have dataframe with column that contains lists with id of objects and objects alias in other dataframe. I want to replace id in column with lists in...

pythonpandas
Read more
November 26th, 2023
Python Dataframe: If Value in Column Equals String AND Value in Second Column is Null, Replace the Null Cell With Another String

I have the following sample python dataframe below: Type Value A sesame B A C tea A bun The code to create the table is below: i...

pythonreplacefilterconditional-statementsnull
Read more
November 26th, 2023
Concatenate value of 2 columns datatable with space and replace "-" with empty in vb.net

I'm trying to Concatenate value of 2 columns datatable with space and replace "-" with empty in vb.net. I have the code below, but this is still wrong...

datatablereplaceconcatenationvb.netdatagridview
Read more
November 24th, 2023
Replace class name inside class attribute in HTML string

I have HTML string and I want to replace specific class name with another. I want do it using regular expression. I found a way, to replace all string...

javascriptregexhtml
Read more
November 24th, 2023
How to replace `cur_data()` with `pick()` when adding a row to each group in a dataframe

I see that in dplyr the function cur_data() has been deprecated in favor of pick(). However, I'm confused about how to use pick() when trying to add r...

rdplyr
Read more
November 23rd, 2023
How do I replace the setTimeout method in a typesafe manner?

In my tests I want to replace the setTimeout method so that the tests run fast. Originally I had the equivalent piece of code that used "any"... But o...

javascripttypescripttype-safety
Read more
November 23rd, 2023
Replace points with hexagons in map ggplot

On a map, I'm trying to replace points with hexagons but can't. I've tried using geom_hex but I don't get the same result, Any suggestions? ggplot() +...

rggplot2
Read more
November 22nd, 2023
Compare and replace lists in function of their lenghts

I have Two lists, let's say A & B : (A is the reference name and B is the new name) What I want is : if A is bigger than B (len(A)=5 ; len(B) = 3) :th...

python
Read more
November 24th, 2023
How to replace missing values in ID variable

My data frame consists of observations (rows) from two different survey waves (as indicated by the column "wave"). There are two id columns ("student_...

r
Read more
November 24th, 2023
Replace a subarray with an array containing the subarray

How to convert this object to array without nesting inside. Just need to convert create links array and push the leftSection --> links object in it. "...

jsonphparrays
Read more
November 18th, 2023
Replace everything from string1 to string2 in file including newlines

I have a file with content like this: (marked as js for better readability only, could be any plain text file) some text /*%SKIP% line comment %SKIP%*...

bashshellsubstitution
Read more
November 22nd, 2023
Android Compose Constraint Layout in a LazyColumn, in a NavHost: error - replace() called on item that was not placed

I have a large project where i was getting this exception - replace() called on item that was not placed. I was able to narrow the root of the problem...

androidandroid-studioandroid-jetpack-composekotlinnavigation
Read more
November 17th, 2023
How can I replace duplicate values in the output of a FILTER function in excel with blanks, leaving gaps in the output

I have a list of people and their addresses in excel. I have a dropdown that allows me to select a road, which results in my FILTER function returning...

excelexcel-formulaarray-formulas
Read more
November 16th, 2023
How to find some text and replace the value in a DataFrame column using python and Pandas

I have the follow DataFrame in my code: Column A Column B Sub-123 foco Sub-321 #foco, teste Sub-332 Foco, cod I need to find the rows ...

pythonpandas
Read more
November 16th, 2023
How to replace "\" with an empty string?

Hi im trying to replace this specific character from an entire string in go but i get the missing ',' in argument list This is my code, as you can see...

stringreplacegoescaping
Read more
November 14th, 2023
Replace last 4 digits by adding 1 digit (excluding 0x)

I have the following file (test.txt) which I want to change the logic as following: 0 becomes 1 1 becomes 2 2 becomes 3 3 becomes 4 4 becomes 5 5 be...

linuxawkreplacefunctionsubstring
Read more
November 15th, 2023
Replace whole column with a new value in all multiple lines

I have the following lines in a file $ cat test.txt 69|1074330570|1,sip:+121345633210x3Bverstat=TN-Validation-Passed|tel:+12134565534|0 69|1077822111|...

regexlinuxawkreplacesubstr
Read more
November 14th, 2023
Linux Replace whole column with a new value in all multiple lines

I have the following lines in a file cat test.txt 69|1074330570|1,sip:+121345633210x3Bverstat=TN-Validation-Passed|tel:+12134565534|0 69|1077822111|2,...

linuxawkreplacesubstr
Read more
November 13th, 2023
Sed replace single text with content of file

I have a question regarding using sed. I have a JSON file and I want to get it inserted in another file. What I'm trying is to get all the contents of...

bashshellsedfind
Read more
November 10th, 2023
Replace Last 4 Digits In Oracle

I have confidential numbers that I want to replace. For Example: 5712221479 6782236690 I want to replace the last four digits by adding 1 digit. 57122...

oraclesql
Read more

Hot Topic

  • 25881

    How do I undo the most recent local commits in Git?

  • 11618

    How can I remove a specific item from an array in JavaScript?

  • 20343

    How do I delete a Git branch locally and remotely?

  • 7387

    How can I find all files containing a specific text (string) on Linux?

  • 7330

    How to find all files containing specific text (string) on Linux?

  • 7611

    How do I revert a Git repository to a previous commit?

  • 2671

    How do I create an HTML button that acts like a link?

  • 8481

    How do I check out a remote Git branch?