In a script, I want to search for some text that has a hard return in it (DOS text file) and then delete it by replacing it with a null string "". The text is something like:
changetype: add <--- hard return after 'add'
loginDisabled:
If I put the following line in a script, it doesn't work:
UltraEdit.activeDocument.findReplace.replace("changetype: add
loginDisabled: ","");
If I use the ^p character to match the Hrt (like you can use in a normal find/replace), it doesn't work as well:
UltraEdit.activeDocument.findReplace.replace("changetype: add^ploginDisabled: ","");
Is it not possible to search for a string with hard returns or other control characters when using the findReplace command in a script?
Thanks,
Dan
changetype: add <--- hard return after 'add'
loginDisabled:
If I put the following line in a script, it doesn't work:
UltraEdit.activeDocument.findReplace.replace("changetype: add
loginDisabled: ","");
If I use the ^p character to match the Hrt (like you can use in a normal find/replace), it doesn't work as well:
UltraEdit.activeDocument.findReplace.replace("changetype: add^ploginDisabled: ","");
Is it not possible to search for a string with hard returns or other control characters when using the findReplace command in a script?
Thanks,
Dan