Open 7evenk opened 1 year ago
It should be possible to define a callback function in the replace field.
So it is possible to do math operations during replacement.
const regex = /(grid-row:)([0-9]*)/g; let replacedText = text.replaceAll(regex, (match, g1, g2) => { let result = parseInt(g2) + 1; return g1 + result; });
It should be possible to define a callback function in the replace field.
So it is possible to do math operations during replacement.