Ahmed's public fiddles
-
Skipped regex validation questions
see https://www.w3resource.com/javascript-exercises/javascript-regexp-exercises.php for questions and solutions
-
**Solution** Write a JavaScript function to check whether a given value is US/Canada/UK zip code or not
didnt even look at them but good to have them here
-
**Solution**Write a JavaScript function to check whether a given value is time string or not.
just looking at solutions from question 11 onwards (validating with regular expression section of w3 resource questions)
-
-
**w3's solution**
super long - just ridiculous
-
function to check whether a given value is IP value or not
also included a feature to retrieve the last 3 digits of the IP address - using (?:x)
-
program to count number of words in string
made it so the program also retrieves all of the words, removing all punctuation and keeping words with apostrophes, hyphens etc.
-
program that work as a trim function (string) using regular expression
good use of regexp's
-
program to search a date within a string.
good use of regexp's
-
pattern that matches e-mail addresses
good use of regexps
-
-
-
**Solution** function to get humanized number with the correct suffix such as 1st, 2nd, 3rd or 4th.
No-Library (pure JS), HTML, CSS, JavaScript
-
function to Uncapitalize the first letter of each word of a string
good use of regexp's
-
function to create a case-insensitive search.
good use of regexp's, a lot of playing around and good things learnt.
-
-
-
function to remove HTML/XML tags from string
BOSS level understanding of GREED and use of regex.
-
function to remove non-word characters
regexp's used. question wasnt asked properly
-
check if a string ends with specified suffix
beautiful use of regexp's