What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-23 08:35:07
complete python developer in 2020 zero to mastery
# Note: No semicolons needed. Comments: # # Tips: \n in string adds new line. \t adds new tab. len() measures length of item. int(), str(), float(), bool, etc converts items # Output: print(value) print("Hi!") # Variables my_variable = "Hi!... Add solution -
PHP 2021-09-23 07:44:01
php convert to lowercase
strtolower ( string $string ) : string //Returns string with all alphabetic characters converted to lowercase. $string = 'HELLO WORLD'; echo strtolower($string); //Output: 'hello world' $string = 'HeLlO WoRlD'; echo strtolower($string); //Output: 'hello ... Add solution -
Javascript 2021-09-20 21:31:03
javascript \w
\w //This shortcut is equal to [A-Za-z0-9_]. //This character class matches upper and lowercase letters plus numbers. //Note, this character class also includes the underscore character (_). let longHand = /[A-Za-z0-9_]+/; let shortHand = /\w+/; let numb... Add solution -
Javascript 2021-09-20 18:52:03
how to set validation for email in javascript
function isValidEmail(email) { const re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return re.test(String(... Add solution