scrimba
Learn Regex
Match a Literal String with Different Possibilities
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 a Literal String with Different Possibilities
AboutCommentsNotes
Match a Literal String with Different Possibilities
Expand for more info
index.js
run
preview
console
let petString = "James has a pet cat.";
let petRegex = /change/;
let result = petRegex.test(petString);
Console
index.html
-0:45