Answers for "regex reuse pattern"

0

regex reuse pattern

let repeatNum = "42 42 42";
let reRegex = /^(\d+)\s\1\s\1$/;
let result = reRegex.test(repeatNum);
Posted by: Guest on May-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language