`

JavaScript for UltraEdit

阅读更多
function removeEmptyRow()
{	
	for (var i=0; i < 100; i ++)
	{
		UltraEdit.activeDocument.findReplace.replace("0D0A0D0A","0D0A");	
	}
}

UltraEdit.activeDocument.top();

//remove white space rows first
UltraEdit.activeDocument.findReplace.matchCase = false
UltraEdit.activeDocument.findReplace.regExp = true
UltraEdit.activeDocument.findReplace.replaceAll = true
UltraEdit.activeDocument.findReplace.replace("^[ ]+$","")
UltraEdit.activeDocument.hexOn()

//the remove ODOAODOA
UltraEdit.activeDocument.findReplace.regExp = false
UltraEdit.activeDocument.findReplace.searchAscii = false
UltraEdit.activeDocument.findReplace.replaceAll = true
removeEmptyRow()

UltraEdit.activeDocument.hexOff()

 
分享到:
评论
发表评论

文章已被作者锁定,不允许评论。

相关推荐

Global site tag (gtag.js) - Google Analytics