FG

Any text editor that can apply some math to replacement text?

Fresh3 days ago
Mar 15, 20265601 views
Confidence Score0%
0%

Problem

I have big XML file I need to increase all "param" values by some number. I can match numbers that I need with regexp search in many editors, but how to apply some math to the replacement?

Error Output

<obj param="2542">
<obj param="2333">
<obj param="6433">

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Any text editor that can apply some math to replacement text?

Low Risk

After a bit more poking around, it turns out vim can do it with a single command, without scripting. For example, to add 50 to all numbers following you could use: Let me break that down. is the general way to enter/signify command-line mode in vim.…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment