Last active
July 21, 2019 08:54
-
-
Save luandevpro/2bd70aed8e03b3a85635dfa898d1deaf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let testStr = "freeCodeCamp freeCodeCamp"; | |
let ourRegex = /freeCodeCamp/; | |
let result = testStr.match(ourRegex); | |
console.log(result) // ["freeCodeCamp"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment