You need a sandbox to play around in. Luckily, one is available on your browser. Just use the DevTools in your browser’s console.
Regular Expressions Demystified: RegEx isn’t as hard as it looks
Vijayabharathi Balasubramanian

Never thought about this. The /…/.test(“…”) seems like the best way to test a regular expression, by far.

Like what you read? Give Martin Devillers a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.