← Back to Challenges
advanced Time limit: 1:00

Regex Rename Variable

Rename a variable using word boundaries to avoid partial matches.

Commands
:%s

Regex Rename Variable

Rename a variable using word boundaries to avoid partial matches.

Time
0:00
/ 1:00
Editor0 keys
1let count = 0;
2count += 1;
3resetCount();
4console.log(count);
5let countMax = 100;
-- NORMAL --regex-rename
Target
1let total = 0;
2total += 1;
3resetCount();
4console.log(total);
5let countMax = 100;
-- NORMAL --regex-rename
⚠ Guest mode — Sign in to save your progress and score