Answers for "Regular Expressions: Extract Matches"

0

Regular Expressions: Extract Matches

"Hello, World!".match(/Hello/);
// Returns ["Hello"]
let ourStr = "Regular expressions";
let ourRegex = /expressions/;
ourStr.match(ourRegex);
// Returns ["expressions"]
Posted by: Guest on January-13-2020

Code answers related to "Regular Expressions: Extract Matches"

Code answers related to "Javascript"

Browse Popular Code Answers by Language