Skip to content

Instantly share code, notes, and snippets.

@KaziMdMehediHasan
Forked from codebubb/regex_exercises_01.js
Created February 19, 2021 05:41
Show Gist options
  • Save KaziMdMehediHasan/2342a3ee07b372cabd6b935dc517f0f8 to your computer and use it in GitHub Desktop.
Save KaziMdMehediHasan/2342a3ee07b372cabd6b935dc517f0f8 to your computer and use it in GitHub Desktop.
Some Regex string testers
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.
@BahlulHasanli
Copy link

Good test to improve myself in regex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment