const regex = /([0-9]{4})([0-9]{2})/g;
const str = `201709`;
let m;
while ((m = regex.exec(str)) !== null) {
// This is necessary to avoid infinite loops with zero-width matches
if (m.index === regex.lastIndex) {
regex.lastIndex++;
}
// The result can be accessed through the `m`-variable.
m.forEach((match, groupIndex) => {
console.log(`Found match, group ${groupIndex}: ${match}`);
});
}
#temp
is the id of the element that i want to change
:star2: 8893 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
:star2: 2974 | @forkerino |http://www.freecodecamp.org/forkerino
@OrangeKulture If you go to your profile, you will find the explanation
Note: We have temporarily disabled viewing and sharing solutions, however they are safely stored in your profile. You can learn more about this here.