What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-02 21:40:59
js replace all symbols in string
function replaceAll(str, find, replace) { var escapedFind=find.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1"); return str.replace(new RegExp(escapedFind, 'g'), replace); } //usage example var sentence="How many shots did Bill t... Add solution -
Other 2021-11-14 09:55:23
work macro auto highlight words from exle file
Sub VagueWords() ' Source: Paul Edstein (Macropod), 8 Aug 2015: https://answers.microsoft.com/en-us/msoffice/forum/all/how-to-search-and-replace-multiple-wordsletters-in/af4753a0-7afd-433b-910d-a148da66f2bf ' Original macro name: MultiReplace ' Adapted b... Add solution -
C++ 2021-11-09 00:08:08
Dfs program in c++
############### #The Algorithm (In English): # 1) Pick any node. # 2) If it is unvisited, mark it as visited and recur on all its # adjacent nodes. # 3) Repeat until all the nodes are visited, or the node to be # searched is found. # The grap... Add solution -
Shell/Bash 2021-11-06 01:39:11
find linux
Extremely useful command!! In Mac and Linux: Define directory where to search as "." for current directory and then specify the name or regex of file or folder to find. find . -name "foo*" In Windows: Define "/s" for a re... Add solution -
C++ 2021-10-20 03:25:06
depth first search graph
############### #The Algorithm (In English): # 1) Pick any node. # 2) If it is unvisited, mark it as visited and recur on all its # adjacent nodes. # 3) Repeat until all the nodes are visited, or the node to be # searched is found. # The grap... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5