Code to accompany the Udemy course Regular Expressions for Beginners and Beyond! With Exercises
Exercises are meant to be done with Node 12.0.0+ or Python 3.8+.
Lecture examples are meant to be run with Node 12.0.0+ or Python 3.8+.
Run npm test
in any directory with a package.json
file.
Note: This will run the tests against the evaluate.js
files, which already have the answers filled in. Interactive exercises with tests are meant to be completed via the Udemy platform. However, if you would like to use the tests against your own solutions, here's what you can do:
- Fill out the answers in the
blank.js
files. - Type the keyword
export
before eachconst
in theblank.js
file (so eachconst
should be replaced withexport const
). - Change the import statement in
evaluate.js
to import from./blank.js
instead of from.
.
Run ./run_tests
where available.
Note: you may need to update the file to be executable (chmod +x run_tests
) first.