JavaScript Regular Expressions
Learn to match patterns in strings with regular expressions.

1. Regular Expression Tester

Regular expressions are patterns used to match character combinations in strings. Try creating your own regex and testing it against a string.

JavaScript Code
Live JavaScript representation with highlighted changes
const regex = new RegExp("ab+c", "g");
const testString = "abc abbc abbbc";
const matches = testString.match(regex);
console.log(matches);
Matches