What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-09-05 16:48:01
powershell disable password complexity
secedit /export /cfg c:\secpol.cfg (gc C:\secpol.cfg).replace("PasswordComplexity = 1", "PasswordComplexity = 0") | Out-File C:\secpol.cfg secedit /configure /db c:\windows\security\local.sdb /cfg c:\secpol.cfg /areas SECURITYPOLICY rm... Add solution -
Java 2021-09-05 11:37:02
how to replace in java
public static void main(String args[]){ String s1="my name is khan my name is java"; String replaceString=s1.replace("is","was");//replaces all occurrences of "is" to "was" System.out.println(replace... Add solution -
C# 2021-09-05 10:12:03
c# string replace multiple matches with one charactar
public static class ExtensionMethods { public static string Replace(this string s, char[] separators, string newVal) { string[] temp; temp = s.Split(separators, StringSplitOptions.RemoveEmptyEntries); return String.Join( newVal... Add solution -
Javascript 2021-09-05 02:49:02
auto increment string in javascript
function autoIncrementCustomId(lastRecordId){ let increasedNum = Number(lastRecordId.replace('ABC','')) + 1; let kmsStr = lastRecordId.substr(0,3); for(let i=0; i< 6 - increasedNum.toString().length; i++){ kmsStr = kmsStr+'0'; } kmsStr = ... Add solution -
Javascript 2021-09-04 16:07:02
js capitalize first letter
//capitalize only the first letter of the string. function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); } //capitalize all words of a string. function capitalizeWords(string) { return string.repl... Add solution
Best helpers
Ranking is empty