scrimba
Learn Regex
Match Anything with Wildcard Period
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Match Anything with Wildcard Period
AboutCommentsNotes
Match Anything with Wildcard Period
Expand for more info
index.js
run
preview
console
let humStr = "I'll hum a song";
let hugStr = "Bear hug";
let huRegex = /hu./;
humStr.match(huRegex); // Returns ["hum"]
hugStr.match(huRegex); // Returns ["hug"]

let exampleStr = "Let's have fun with regular expressions!";
let unRegex = /change/;
let result = unRegex.test(exampleStr);

console.log(result);
Console
index.html
-1:34