Hi all,
I want to replace all 0000 at the beginning of every line in the actual file with two letters AB with a script.
My code:
Result:
My first try with a script is not really good.
Line 3 should be:
How to solve this problem?
I want to replace all 0000 at the beginning of every line in the actual file with two letters AB with a script.
Code: Select all
00000012345678 . . .
00000001234567 . . .
00000000123456 . . .
00000012345678 . . .
Code: Select all
UltraEdit.activeDocument.top();
UltraEdit.activeDocument.findReplace.replaceAll=true;
UltraEdit.activeDocument.findReplace.matchCase=true;
UltraEdit.activeDocument.findReplace.replace("0000", "AB");
Code: Select all
AB0012345678 . . .
AB0001234567 . . .
ABAB123456 . . .
AB0012345678 . . ..
Line 3 should be:
Code: Select all
AB0000123456 . . .