๐
- Clone the repo onto your machine by opening the terminal at your workspace folder and typing
git clone
followed the 'SSH key'. - Create a new branch with
git checkout -b YOUR_NAME
- Open the repo with
code .
- Open this readme file in VS Code and click
ctrl+shft+v
. This file will open in PREVIEW mode and will be a whole lot nicer to read...๐ฅ
This repo is deisgned to teach you how to use Regular Expressions like a pro! Regular expressions or 'regexes' are patterns used to match character combinations in strings. They are extremely handy but can quickly become quite complicated. Follow the instructions below to get started on your regex journey...
Here are some useful resources to help you out ๐:
- To start off, watch this video: Learn Regular Expressions In 20 Minutes
- Try your hand at these lessons on regexone.com. If you are having difficulty, the solutions are available on each page.
- Follow along with this codebubb video and write your answers in the
regex.js
file in this repo. Test your answers by runningnode regex.js
in the terminal. Add
,commit
andpush
your code to your branch.
Now it is time for you to apply your regex skills to your personal project by creating a 'user record'!
- Create an input field where a user can enter their email address.
- When the user submits their email address, I want to see that address displayed below the input field.
- Using regexes, I want that text to display ONLY if it is a valid gmail address with the format "[email protected]".
- Now I want to see 2 more input fields, one for name and one for age.
- Using regexes, I want only valid names and ages to be displayed below.
- Now think of another way you can incorporate regexes into your project.
Nice work! ๐