What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-01-31 09:35:55
regex ranges
/* character ranges */ regex = /[a-z]/; // matches all lowercase letters regex = /[A-Z]/; // matches all uppercase letters regex = /[e-l]/; // matches lowercase letters e to l (inclusive) regex = /[F-P]/; // matches all uppercase letters F to P (inclusive... Add solution -
Javascript 2022-01-30 12:46:23
regex
Let regex; /* shorthand character classes */ regex = /d/; // matches any digit, short for [0-9] regex = /D/; // matches non-digits, short for [^0-9] regex = /S/; // matches non-white space character regex = /s/; // matches any white space character regex ... Add solution -
Javascript 2022-01-22 04:46:10
regex /
Let regex; /* shorthand character classes */ regex = /d/; // matches any digit, short for [0-9] regex = /D/; // matches non-digits, short for [^0-9] regex = /S/; // matches non-white space character regex = /s/; // matches any white space character regex ... Add solution -
Javascript 2021-11-05 23:07:11
regular expression |
Let regex; /* shorthand character classes */ regex = /d/; // matches any digit, short for [0-9] regex = /D/; // matches non-digits, short for [^0-9] regex = /S/; // matches non-white space character regex = /s/; // matches any white space character regex ... Add solution -
Other 2021-10-22 09:23:13
accept two numbers number 1 and number 2 and find the sum of all odd numbers between the two numbers entered
#include <iostream> using namespace std; int main() { //a. Prompt the user to input two integers: firstNum and secondNum //(firstNum must be less than secondNum). cout << "a. Prompt the user to ... Add solution -
Java 2021-10-16 23:06:04
java coding standards for constants
Constants in java are created using static and final keywords. 1) Constants contains only uppercase letters. 2) If constant name is combination of two words it should be separated by underscore. 3) Constant names are usually nouns. Ex:MAX_VALUE, MIN_VALU... Add solution -
Javascript 2021-10-12 10:42:13
toLowerCase Examples¶
/*The general syntax for this method is: stringName.toLowerCase(); This method returns a copy of stringName with all uppercase letters replaced by their lowercase counterparts. It leaves non-alphabetic characters unchanged.*/ "LaunchCode".to... Add solution