-
-
Save KaziMdMehediHasan/2342a3ee07b372cabd6b935dc517f0f8 to your computer and use it in GitHub Desktop.
Some Regex string testers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ex1 = 'The quick brown fox jumped over the lazy dog'; | |
const ex2 = 'A1B2C3D4E5F6G7H8I9J10'; | |
const ex3 = 'The salad costs $9.99'; | |
const ex4 = 'Contact customer support on 0800 300 500'; | |
const ex5 = 'You can contact me on Twitter @codebubb or [email protected]'; | |
// Exercise 01 | |
// Using a regex pattern, get the 3 letter words in the ex1 string. | |
// Exercise 02 | |
// Using a regex pattern, remove all of the numbers from the ex2 string. | |
// Exercise 03 | |
// Using a regex pattern, find the monetary value contained within the ex3 string. | |
// Exercise 04 | |
// Using a regex pattern, find the telephone number contained within the ex4 string. | |
// Exercise 05 | |
// Using a regex pattern, find the email address contained within the ex5 string. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good test to improve myself in regex