Ahmed's public fiddles
-
function to find a word within a string.
good use of regexp's
-
**solution** function to strip leading and trailing spaces from a string.
done with regex, not .trim()
-
function to truncate a string to a certain number of words.
function to truncate a string to a certain number of words.
-
function to get a part of a string after a specified character.Go to the editor
good use of regexp's
-
function to escape a HTML string.
good use of regexp's
-
2nd time - function to count the occurrence of a substring in a string.
good use of the RegExp constructor & how to escape user input (see mdn for more). also played around with using a ternary operator
-
function to chop a string into chunks of a given length.
function to chop a string into chunks of a given length.
-
function to insert a string within a string at a particular position (default is 1)
function to insert a string within a string at a particular position (default is 1)
-
-
JavaScript function to uncamelize a string.
good use of regexp's
-
2nd go - function to convert a string into camel case
good use of regexp's
-
Input a string and converts upper case letters to lower and vice versa
good use of regexp's
-
capitalize the first letter of each word in a string
capitalize the first letter of each word in a string
-
regex exercises solutions
No-Library (pure JS), HTML, CSS, JavaScript
-
**Solution** function to hide email addresses to protect from unauthorized user.
No-Library (pure JS), HTML, CSS, JavaScript
-
**Solution** Parameterize a string
good use of regexp's
-
2nd time - function to check whether a string is blank or not.
No-Library (pure JS), HTML, CSS, JavaScript
-
2nd time - function to check whether an `input` is a string or not
No-Library (pure JS), HTML, CSS, JavaScript
-
generate an array of specified length, filled with ...
##Good use of for loops here ## maybe start practicing while loops
-
**solution** move an array element from one position to another.
##good use of splice + better understanding